Skip to content

Latest commit

 

History

History
58 lines (23 loc) · 1.36 KB

File metadata and controls

58 lines (23 loc) · 1.36 KB

Email-Spam-Detection-in-Python-with-Machine-Learning

C:\Users\Sanket\Desktop\pyscripts>pip install pandas

C:\Users\Sanket\Desktop\pyscripts>pip install numpy

C:\Users\Sanket\Desktop\pyscripts>pip install sklearn

C:\Users\Sanket\Desktop\pyscripts>python simple-spam-detector-in-python.py

simple-spam-detector-in-python.py:9: FutureWarning: Method .as_matrix will be re moved in a future version. Use .values instead. dataset=pd.read_csv("spambase.data").as_matrix()

Checkpoint I

Checkpoint II

Classification Score for Naive-Bayes is -: 0.88

Checkpoint III

Classification Score for AdaBoost -: 0.95

Checkpoint IV

C:\Users\Sanket\AppData\Local\Programs\Python\Python37-32\lib\site-packages\skle arn\ensemble\forest.py:245: FutureWarning: The default value of n_estimators wil l change from 10 in version 0.20 to 100 in 0.22."10 in version 0.20 to 100 in 0.22.", FutureWarning)

Classification Score for RandomForestClassifier -: 0.94

C:\Users\Sanket\AppData\Local\Programs\Python\Python37-32\lib\site-packages\skle arn\ensemble\forest.py:245: FutureWarning: The default value of n_estimators wil l change from 10 in version 0.20 to 100 in 0.22."10 in version 0.20 to 100 in 0.22.", FutureWarning)

Classification Score for ExtraTreesClassifier -: 0.96

Checkpoint V

Classification Score for DecisionTreeClassifier -: 0.93