This is a template html page for the Javascript function produced by BasicBayes_Pgm.php It provides examples of how the function can be used without connection to the www.
The page is designed as an example and a template, expecting that the user will want to modify it to suit his/her own needs. With this in mind, the page has the following features.
There is a minimum amount of formatting. The text and user interfaces are just listed in the html codes
The Javascipt codes are on the one hand minimalist, containing only the essential elements to make the program work. On the other hand, it is written so that the procedures are written in long hand, one line per step, to make them easy to follow.
It is recommended that, once this page is downloaded, the user should do the following
Use the browser's Tools, and examine the codes behind the page, to make sure there are no hidden or malicious codes
Use a text editor, and modify the program by
Import the Javascript function from BasicBayes_Pgm.php, changing the example to the user's own attribute and outcomes
Modify the user interface so that they are compatible with the user's data and functional needs
Test the edited page thoroughly to ensure that the modifications contains no errors before it is used
The user can also use the logic of this page, translate the codes into his/her own applications or into another computer language
Example 1: A Column of Attributes
This example is intended for interpreting a column of attributes
The data is a column of attributes
The result is a table, each row contains the attribute and the probabilities of alternative outcomes
No other labelling is provided. Users can insert his/her own labels if required.
Example 2: User Interface
This example is intended for use by a data technician, with user interface to produce the attribute, and use that attribute to produce a result
Each predicting element is incorporated in a <select> tag, with the attribute in the <options> tag
The program
reads the selected options as sub-attributes
concatenate them into a single attribute
interpret the attribute and produces an array of probabilites
output the concatenated attribute and probabilities
No other labelling is provided. Users can insert his/her own labels if required.