Skip to content

Epoch1128/iris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages