Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 668 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 668 Bytes

Naive Bayesian

For Training & Testing:

# Discrete mode
$ python naive_bayesian.py --mode=0

# Continuous mode (using Gaussian)
$ python naive_bayesian.py --mode=1

All options:

usage: naive_bayesian.py [-h] [--dir DIR] [--mode MODE] [--bin BIN]
                         [--num_classes NUM_CLASSES]

optional arguments:
  -h, --help            show this help message and exit
  --dir DIR             specify the data file
  --mode MODE           0 for discrete mode, 1 for continuous mode
  --bin BIN             specify the number of bins for discrete mode
  --num_classes NUM_CLASSES
                        specify the number of classes