ShowTheBestCase-Based Reasoning |
Problem |
This example shows how to build a Sample ShowTheBest Application -- a web page using Case-Based Reasoning methods -- that selects restaurants. Look at the inputs (you can copy them and paste them in your own application) to see how the tools work. Click on the buttons to see the actions. More details below.
First we need to import the case database from a tab-delimited text file. The case database is just a table -- with cases and fields represented in rows and columns. Most of the time the cases are in the rows and the fields are vertically across columns, but sometimes you may want to have a table with the cases going across the page and the fields going vertically down the rows. ShowTheBest lets you select either option. Also note that your case database may include case names, field names or both. ShowTheBest will generate case record names or case field names if you tell it. In the example, the Fields are Horizontally Across Columns; the Case names are included in the database, (in the first column) and the Field names are included in the database (in the first row).
Click here to see the text of a table in tab-delimited text. Click here to see the text of a table in an Excel spreadsheet. In either file format, just copy the entire table and paste it into the ShowTheBest TextArea form. Then press the Grab Table button to validate your inputs and go to the next step.
You may put HTML anywhere in the table (after all, HTML is text too!) for formatting and documentation purposes. For example, we can highlight the field name for Location by typing in <b>Location</b> in the cell corresponding to the field name for Location.
Note In this sample application, our Case Database table has HTML for formatting and documentation purposes. Click here to see the text of the example table -- with HTML -- in tab-delimited text. Click here to see the text of the example table -- in an Excel spreadsheet.
Note on Space Limitations This version of ShowTheBest limits the size of the table to 60 rows and 20 columns; each row-column cell in the table in limited to 150 characters, and the total size of the tab-delimited table is limited to 150K characters. (Our file-based version -- which runs on your server -- does not have these limitations and also provides hooks to a server DBMS).