Skip to content

Instantly share code, notes, and snippets.

@saurabhghatnekar
Created April 7, 2018 15:26
Show Gist options
  • Save saurabhghatnekar/c3035c1ce72843a6fb62cd7a31f523a8 to your computer and use it in GitHub Desktop.
Save saurabhghatnekar/c3035c1ce72843a6fb62cd7a31f523a8 to your computer and use it in GitHub Desktop.
after manual train test split
/home/heimdall/anaconda3/bin/python /home/heimdall/pycharm-2018.1/helpers/pydev/pydev_run_in_console.py 37507 33143 /home/heimdall/Desktop/facial_final/train2.py
Running /home/heimdall/Desktop/facial_final/train2.py
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['/home/heimdall/Desktop/facial_final'])
Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 18:10:19)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.
/home/heimdall/anaconda3/lib/python3.6/site-packages/sklearn/cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
"This module will be removed in 0.20.", DeprecationWarning)
***** Decsion Tree *****
accuracy 0.84
Decsion Tree precision recall f1-score support
0 0.71 0.87 0.78 23
1 0.92 0.88 0.90 26
2 0.79 0.73 0.76 30
3 0.96 0.96 0.96 27
4 0.78 0.83 0.81 30
5 1.00 0.71 0.83 14
avg / total 0.85 0.84 0.84 150
***** GB *****
accuracy 0.88
GB precision recall f1-score support
0 0.79 1.00 0.88 23
1 1.00 0.92 0.96 26
2 0.83 0.83 0.83 30
3 0.89 0.93 0.91 27
4 0.86 0.83 0.85 30
5 1.00 0.71 0.83 14
avg / total 0.89 0.88 0.88 150
***** RF *****
accuracy 0.88
RF precision recall f1-score support
0 0.85 0.96 0.90 23
1 0.96 0.92 0.94 26
2 0.88 0.77 0.82 30
3 0.89 0.93 0.91 27
4 0.80 0.93 0.86 30
5 1.00 0.71 0.83 14
avg / total 0.89 0.88 0.88 150
PyDev console: using IPython 6.2.1
Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 18:10:19)
[GCC 7.2.0] on linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment