Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

RULE 1 IF animal has hair THEN specie is mamal RULE 2 IF animal gives milk THEN specie is mammal. RULE 3 IF animal. eats

image text in transcribedimage text in transcribedimage text in transcribed

RULE 1 IF animal has hair THEN specie is mamal RULE 2 IF animal gives milk THEN specie is mammal. RULE 3 IF animal. eats meat THEN specie is carnivore RULE 4 IF animal has pointed teeth AND has claws AND has forward eyes THEN specie is carnivore RULE 5 IF specie is mammal AND animal has hooves THEN specie is ungulate RULE 6 IF specie is mamma 1 AND anima1 chews cud THEN specie is ungulate RULE 7 IFspecieismamalanimalhastawnycolourANDiscarnivoreANDhasdarkspotsANDTHEN animal is cheetah RULE 8 If animal has tawny colour AND has black stripes AND specie is mammal AND is carnivore THEN animal is tiger RULE 9 IF animal has dark spots AND has long neck AND specie is ungulate THEN animal is giraffe RULE 1.0 IF animal has black stripes AND specie is ungulate THEN animal is zebra. Collaboration Statement: You may work with other students; however, each student MUST write up and hand in his or her own assignment separately. DO NOT copy code from other students. If you work with other students, be sure to indicate with whom you have worked in the comments of your submission. You may need to explain portions of your code to receive full credit Please read the attached paper section 2. An animal classification expert system using VP Expert. Figure 1 gives 10 rules that will classify an animal as a tiger, cheetah, giraffe, or zebra Your assignment is to create a forward chaining rule-based system using Python to classify if an animal is a cheetah, tiger, giraffe, or zebra. You will code the 10 rules that are given by the handout on expert systems. Once you have written a program, input the following combinations and report on your programs output. Also make sure to record and show the sequence of rules that fire Determine a combination that will allow you to select a giraffe as the output using only the categories in the table above (You cannot set if the animal is a mammal, carnivore/ungulate or the animal directly) Report (Word document) 10 points. Your report should explain what forward chaining is the design choices you made in your code, how the logic of your code works, and the output of your code as well as the rules that were fired. Code will correctly classify: - Zebra (20 points) - Cheetah (20 points) - Tiger (20 points) - Giraffe (20 points) log and order of rules that were fired (10 points) Deductions- Using any external libraries -30 (capped at 0 ) Code does not run/Errors present 50 (capped at 0 )

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions

Question

How do listening and hearing diff er?

Answered: 1 week ago

Question

305 mg of C6H12O6 in 55.2 mL of solution whats the molarity

Answered: 1 week ago