From 74b673ba4a706085201a5610b938ff98f08f641d Mon Sep 17 00:00:00 2001 From: ziejd2 Date: Wed, 25 Apr 2018 16:43:19 -0500 Subject: Bug fixes, code comments, and minor changes --- sourcecodes/help.php | 48 ++++++++++++++++++++++++++++++++++++------------ 1 file changed, 36 insertions(+), 12 deletions(-) (limited to 'sourcecodes/help.php') diff --git a/sourcecodes/help.php b/sourcecodes/help.php index a6f6d336..683eeebe 100644 --- a/sourcecodes/help.php +++ b/sourcecodes/help.php @@ -33,6 +33,7 @@ include("header_new.inc");
Data files uploaded to the Bayesian Network Webserver should be tab-delimited text files with the names of the variables in the first row of the file and the values of the variables for each sample or individual in the remaining rows.
BNW automatically determines whether variables contain continuous or discrete data. To help ensure that BNW correctly parses data files, users should follow these formatting guidelines:
- 1. Variable names should start with a letter, not a number, and should not contain any whitespace characters.
- 2. Discrete variables should be listed before continuous variables, that is, discrete variables should be the leftmost columns of the file.
-3. The values of the levels of discrete variables should be integers starting with 1.
- 4. The data values for each continuous variables should include a period (.) followed by a number in at least one of the samples.
- An example input data file for a file with 5 variables is given below. The network contains 2 discrete (Disc1 and Disc2) variables, which are given in the first two columns of the file, and 3 continuous variables (Cont1, Cont2, and Cont3). Disc1 is a discrete variable with two states (1 and 2), while Disc2 has three states (1, 2, and 3). Although the samples of Cont2 are integral values, we wish to deal with this variable as continuous, not discrete. Therefore, the value of Cont2 for the first sample is given as '3.0' instead of '3' so that one of the values of Cont2 contains a '.' followed by a number and Cont2 is interpreted as a continuous variable.
+
Data files uploaded to the Bayesian Network Webserver should be tab-delimited text files with the names of the variables in the first row of the file and the values of the variables for each sample or individual in the remaining rows.
Variable names should not contain any whitespace characters.
BNW automatically determines whether each variable contains continuous or discrete data. BNW applies the following rules, in order, to determine if variables should be considered discrete or continuous:
+ 1. If a variable contains 3 or fewer different values, the variable is considered to be discrete.
+ 2. If a variable contains more than 20 different values, the variable is considered to be continuous.
+ 3. If the ratio of the number of different values for a variable compared to the number of cases in the data set is large, the variable is considered to be continuous. Specifically, if this ratio is 1/3 or larger, the variable is considered to be continuous.
+ 4. If none of the first three rules apply, the data set is inspected to determine if any of the values for the variable contain a period (.). If at least one value contains a period, the variable is considered to be continous; otherwise, the variable is considered to be discrete.
+ Users can examine whether or not BNW has correctly loaded input data files and classified variables by clicking on "View uploaded variables and data" on the left-hand menu after uploading a dataset. We believe that BNW should correctly classify variables in most cases, but users may occasionally need to add or remove a period to the data of some variables.
+ An example input data file for a file with 5 variables is given below. The network contains 2 discrete (Disc1 and Disc2) variables, which are given in the first two columns of the file, and 3 continuous variables (Cont1, Cont2, and Cont3). Disc1 is a discrete variable with two states (1 and 2), while Disc2 has two states (A and B). Although the samples of Cont2 are integral values, we wish to deal with this variable as continuous, not discrete. Therefore, the value of Cont2 for the first sample is given as '3.0' instead of '3' so that one of the values of Cont2 contains a '.', helping to ensure that Cont2 is interpreted as a continuous variable.
| Disc1 | Disc2 | Cont1 | Cont2 | Cont3 | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2 | 1 | 3.25 | 3.0 | 0.97 | +2 | A | 3.25 | 3.0 | 0.97 | ||||||||
| 2 | 3 | 2.46 | 2 | 0.93 | +2 | B | 2.46 | 2 | 0.93 | ||||||||
| 1 | 2 | 4.21 | 33 | 0.43 | +1 | A | 4.21 | 33 | 0.43 | ||||||||
| 2 | 3 | 3.76 | 8 | 0.88 | +2 | B | 3.76 | 8 | 0.88 | ||||||||
| 2 | 1 | 3.69 | 4 | 0.91 | +2 | A | 3.69 | 4 | 0.91 | ||||||||
| 1 | 1 | 4.27 | 13 | 0.38 | +1 | B | 4.27 | 13 | 0.38 | +||||||||
| 1 | A | 4.12 | 9 | 0.45 |
|
+ BNW has recently been updated to add features and improve the user experience. These updates have included improving the network model visualizations and allowing users to more quickly load large data sets. Additionally, in a change that is invisible to users, BNW now uses Octave to perform parameter learning with the Bayes Net Toolbox. |