30 likes | 121 Views
Analyze dining data, predict allergic reactions, use version spaces. Input: Restaurant, Meal Type, Day, Cost, Reaction. Jason's Dinner on Saturday was cheap with a reaction; Mary's Lunch on Saturday was expensive and no reaction; Jason's Lunch on Friday was cheap with a reaction; Susan's Dinner on Sunday was cheap with no reaction; Jason's Dinner on Sunday was expensive with no reaction. Implement version spaces to determine the accurate model for the data set.
E N D
Question Let us suppose that your neighbor sometimes gets allergic reactions when he eats out. He knows that you are an AI expert and so consults you to find a pattern. He provides the following set of data:NumberRestaurantMealDayCostReaction?Ex1 Jason's Dinner Saturday Cheap YesEx2 Mary's Lunch Saturday Expensive NoEx3 Jason's Lunch Friday Cheap YesEx4 Susan's Dinner Sunday Cheap NoEx5 Jason's Dinner Sunday Expensive NoShow how the method of version spaces will find the right model for this set of examples.
Jasons/Marys/Susans Dinner/Lunch Fri./Sat./Sund Cheap/Expens Ex5 Jason's Dinner Sunday Expensive No Ex3 Jason's Lunch Friday Cheap Yes Ex2 Mary's Lunch Saturday Expensive No Ex1 Jason's Dinner Saturday Cheap Yes Ex4 Susan's Dinner Sunday Cheap No S: ( 0 0 0 0 ) ( J D Sa C ) ( J ? ? C ) ( J ? ? C ) ( J L ? ?) ( J ? F ? ) ( J ? S ? ) ( J ? ? C ) ( M ? ? C ) ( ? L ? C ) ( ? ? F C ) ( J ? ? ? ) ( S ? ? ? ) ( ? D ? ? ) ( ? ? Su ? ) ( ? ? F ? ) ( ? ? ? C ) ( ? ? ? ? ) G: