-
Notifications
You must be signed in to change notification settings - Fork 1
/
generatefolds.sh
24 lines (15 loc) · 931 Bytes
/
generatefolds.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
###
### Use this file as an example to generate training and test files ## for n folds
### and to execute OAA-NBC on the generated data.
###
echo "*** Generating files for 10 folds"
## parameters:
# 1. "f" for files
# 2. "dataset/mds_nom.arff" input file
# 3. "10" Number of folds
# 4. "15" total classes in the dataset (Excluding others which is used by OAA-NBC only)
# 5. "mypath/dataset_matlab" output folder path (note to avoid errors, always provide parent path before the actual folder name)"
# 6. "f" for false and "t" for true for dirichlet distribution based test set
java -jar lib/oaanbc.jar "f" "dataset/regular/matlab_nom.arff" "10" "15" "mypath/dataset_matlab" "f"
echo "****************Generate files uisng 10 folds but generate the test set using Dirichlet distribution ***************"
java -jar lib/oaanbc.jar "f" "dataset/regular/matlab_nom.arff" "10" "15" "mypath/dataset_dirich_matlab" "t"