Problem Modelling Artificial intelligence

Cancelled Posted 6 years ago Paid on delivery
Cancelled Paid on delivery

Create a Case‐Based Reasoning System for recommending restaurants in Örebro based on

properties of restaurants such as Restaurant Type (e.g. Gourmet, Traditional, Fast Food, Cafe, …),

Nationality (Swedish, Asian, Italian, Other,…), Quality Level, Price Level, Distance to University, …

Other properties may be the distance from university or city center, the number of main dishes or

desserts on the menu, the noise or crowdedness level… You are free to decide with which properties

you want to describe a restaurant. For creating such a system, you need to do the following steps:

Design data structures to store the cases in. A case hereby holds all information about one

restaurant. You may want to use classes and instances or dictionaries. In addition you need to

define a similarity function that takes two restaurant‐cases and returns a number between 0 and

1 that expresses how similar the two restaurants are. The higher the number, the more similar

the cases are. Also create a function/method that prints a restaurant case in a form

understandable for a user.

Define functions/methods to load and save cases in a CSV‐file (include a header line). The

structure of a line in the file should be like:

<name>;<property1>;<property2>;….

For example the content of the file could look like:

Name;Type;Nationality;Quality;Price

Pasta la Vista;Take Away;Italian;2;1

CoffeeByGeorge;Cafe;Other;4;3

….

Create methods/functions

 to fill your case base from the file,

 to add cases to your case base and

 to write the case base into a file

and create a data set with at least 20 restaurant entries. If you do not know sufficiently many,

look into [url removed, login to view] – we have a lot of restaurants in Örebro.

Use case‐based reasoning to create a function that takes an input from a user and returns and

displays the case from the case base that is the most similar one:

Input can be done via the console with e.g. using “*” as a don’t care signal telling that this

property is currently not important for the user. Create a query‐case from the user input and

search for the most similar case in your data base. You may need to decide what to do with

“don’t care” properties in the similarity function.

Return and display the most similar restaurant‐case as the recommendation to the user.

Artificial Intelligence Python

Project ID: #16335783

About the project

Remote project Active 6 years ago