Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perceptron and Naive Bayes for iris classification


Author Gao Chaofei
My mailbox 18376047@buaa.edu.cn

Contents

Dataset


Our dataset is from iris. You can find it in ../data/iris.txt.

Preprocess


use data_pre.py to do preprocessing

python data_pre.py

After that, you will get train_data.npy and val_data.npy

Usage


For perceptron

python perceptron.py

For Bayes

python bayes.py

Result


Method Result
Perceptron 1.0
Naive Bayes 0.98

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages