Skip to content

yuhsinliu1993/NaiveBayesian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages