How does the Bayes algorithm be implemented in sk-learn? -
today, try write bayesian algorithm compare same algorithm in sk-learn.
i found result of own bayesian algorithm better bayesian algorithm named sklearn-gaussiannb , 1 named sklearn-multinomialnb.
note idea of method writed similar multinomialnb in sk-learn. result different.
is there need pay more attention on when use bayes algorithm in sk-learn?
the accuracy:
my own: 0.97
gaussiannb: 0.909
multinomialnb:0.876
does have similar problem?
the bayes algorithm writed: http://paste.ubuntu.com/23382722/
the bayes algorithm sk-learn: http://paste.ubuntu.com/23382725/
the dataset: http://archive.ics.uci.edu/ml/datasets/occupancy+detection+
Comments
Post a Comment