Solve my AI problem
Budget: ₹600 – ₹1,500 INR
Consider cough, fever, red-eye, body-pain are the four symptoms of a new virus xyz. Cough could be
{no, less, severe}, fever could be {no, less, severe}, red-eye could be {no, yes}, body-pain could be
{no, less, severe}. A Genetic Algorithm is applied on a population of hypothesis containing below
P0 = {h1=010010110011, h2=101011001101, h3=101010101001, h4=010111101001}
● Determine fitness of h1, h2, h3, and h4 in P0 using the test database given in the following
Table.
● Let only crossover operations be applied to produce the next generation. Use a crossover mask
specified as 000011101100 to create offspring.
● Derive the fitness function for the new hypotheses produced in the above new generation. The
evolution inputs to iterate should be got from the users as inputs.
Table-0: Test database (15 examples)
(cough, fever, Red-eye, body, Divoc)
(High, No, Yes, No, No)
(No, High, No, No, No)
(No, High, Yes, High, Yes)
(Low, High, Yes, High, Yes)
(Low, High, Yes, Low, Yes)
(No, High, No, Low, Yes)
(High, Low, Yes, Low, Yes)
(No, No, No, High, No)
(No, Low, Yes, High, Yes)
(High, Low, No, High, No)
(Low, No, No, No, Yes)
(Low, Low, No, High, No)
(High, No, Yes, Low, Yes)
(High, No, No, High, Yes)
(No, No, No, No, No)
Note: A hypothesis 011010010011, decoded as 011-010-01-001-1 is interpreted as below If Cough is
low or high; fever is low; red-eye is yes; body-pain is high; then xyz is yes; Else no.
Instructions:
1. Explain the environment of the agent [20% weightage]
2. Determining the fitness of h1, h2, h3, and h4 using test database [20% weightage]
3. Crossover operation to produce the next generation [20% weightage]
4. Derive the fitness function of the new hypothesis produced in the above new generation
[40% weightage]
NOTE:
● You are provided with the python notebook template which stipulates the structure of
code and documentation. Use well intended python code.
● Use a separate PDF document for explaining the theory part. Do not include the theory
part in the Python notebook except Python comments.
● The implementation code must be completely original and executable.
Please keep your work (code, documentation) confidential. If your code is found to be
plagiarized, you will be penalized severely. Parties involved in the copy will be considered
equal partners and will be penalized severely.
{no, less, severe}, fever could be {no, less, severe}, red-eye could be {no, yes}, body-pain could be
{no, less, severe}. A Genetic Algorithm is applied on a population of hypothesis containing below
P0 = {h1=010010110011, h2=101011001101, h3=101010101001, h4=010111101001}
● Determine fitness of h1, h2, h3, and h4 in P0 using the test database given in the following
Table.
● Let only crossover operations be applied to produce the next generation. Use a crossover mask
specified as 000011101100 to create offspring.
● Derive the fitness function for the new hypotheses produced in the above new generation. The
evolution inputs to iterate should be got from the users as inputs.
Table-0: Test database (15 examples)
(cough, fever, Red-eye, body, Divoc)
(High, No, Yes, No, No)
(No, High, No, No, No)
(No, High, Yes, High, Yes)
(Low, High, Yes, High, Yes)
(Low, High, Yes, Low, Yes)
(No, High, No, Low, Yes)
(High, Low, Yes, Low, Yes)
(No, No, No, High, No)
(No, Low, Yes, High, Yes)
(High, Low, No, High, No)
(Low, No, No, No, Yes)
(Low, Low, No, High, No)
(High, No, Yes, Low, Yes)
(High, No, No, High, Yes)
(No, No, No, No, No)
Note: A hypothesis 011010010011, decoded as 011-010-01-001-1 is interpreted as below If Cough is
low or high; fever is low; red-eye is yes; body-pain is high; then xyz is yes; Else no.
Instructions:
1. Explain the environment of the agent [20% weightage]
2. Determining the fitness of h1, h2, h3, and h4 using test database [20% weightage]
3. Crossover operation to produce the next generation [20% weightage]
4. Derive the fitness function of the new hypothesis produced in the above new generation
[40% weightage]
NOTE:
● You are provided with the python notebook template which stipulates the structure of
code and documentation. Use well intended python code.
● Use a separate PDF document for explaining the theory part. Do not include the theory
part in the Python notebook except Python comments.
● The implementation code must be completely original and executable.
Please keep your work (code, documentation) confidential. If your code is found to be
plagiarized, you will be penalized severely. Parties involved in the copy will be considered
equal partners and will be penalized severely.
Related categories:
Artificial Intelligence