Skip to content

Instantly share code, notes, and snippets.

@saurabhghatnekar
Created April 8, 2018 06:58
Show Gist options
  • Save saurabhghatnekar/7575cdc3308b6ad3c4fdb8c8481c5af2 to your computer and use it in GitHub Desktop.
Save saurabhghatnekar/7575cdc3308b6ad3c4fdb8c8481c5af2 to your computer and use it in GitHub Desktop.
/home/heimdall/anaconda3/bin/python /home/heimdall/pycharm-2018.1/helpers/pydev/pydev_run_in_console.py 36483 41605 /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)
[[22.02 11.0 39.01 7.0]
[22.02 7.07 37.01 18.0]
[21.02 9.0 30.02 11.0]
[23.02 12.04 40.0 13.0]
[21.1 8.06 45.1 19.0]
[24.0 10.0 33.0 11.0]
[28.02 11.05 40.11 11.05]
[24.0 9.0 53.01 16.03]
[21.38 12.0 43.01 13.04]
[27.0 11.05 32.0 14.0]
[24.0 10.05 33.02 12.04]
[26.02 11.05 41.01 8.0]
[22.0 12.0 38.0 16.03]
[25.18 12.0 41.0 14.04]]
***** Decsion Tree *****
accuracy 0.785714285714
Decsion Tree precision recall f1-score support
0 1.00 1.00 1.00 3
1 1.00 0.83 0.91 6
2 0.00 0.00 0.00 0
3 0.50 1.00 0.67 1
4 1.00 0.50 0.67 4
avg / total 0.96 0.79 0.84 14
/home/heimdall/anaconda3/lib/python3.6/site-packages/sklearn/metrics/classification.py:1137: UndefinedMetricWarning: Recall and F-score are ill-defined and being set to 0.0 in labels with no true samples.
'recall', 'true', average, warn_for)
***** GB *****
accuracy 0.714285714286
GB precision recall f1-score support
0 1.00 0.67 0.80 3
1 0.83 0.83 0.83 6
2 0.00 0.00 0.00 0
3 1.00 1.00 1.00 1
4 0.67 0.50 0.57 4
avg / total 0.83 0.71 0.76 14
***** RF *****
accuracy 0.785714285714
/home/heimdall/anaconda3/lib/python3.6/site-packages/sklearn/metrics/classification.py:1137: UndefinedMetricWarning: Recall and F-score are ill-defined and being set to 0.0 in labels with no true samples.
'recall', 'true', average, warn_for)
RF precision recall f1-score support
0 1.00 1.00 1.00 3
1 0.83 0.83 0.83 6
2 0.00 0.00 0.00 0
3 1.00 1.00 1.00 1
4 1.00 0.50 0.67 4
avg / total 0.93 0.79 0.83 14
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