Skip to content

Instantly share code, notes, and snippets.

@saurabhghatnekar
Created April 26, 2018 05:45
Show Gist options
  • Save saurabhghatnekar/e0efa4ec758d91c77b4c990b38560b18 to your computer and use it in GitHub Desktop.
Save saurabhghatnekar/e0efa4ec758d91c77b4c990b38560b18 to your computer and use it in GitHub Desktop.
glcm accuracy
/home/heimdall/anaconda3/bin/python /mnt/attic/DADA/codes/glcm/class.py
/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)
LR 71.42857142857143
precision recall f1-score support
0 0.67 0.67 0.67 3
1 0.75 0.75 0.75 4
avg / total 0.71 0.71 0.71 7
[[2 1]
[1 3]]
*****************************
LDA 85.71428571428571
precision recall f1-score support
0 0.75 1.00 0.86 3
1 1.00 0.75 0.86 4
avg / total 0.89 0.86 0.86 7
[[3 0]
[1 3]]
*****************************
CART 71.42857142857143
precision recall f1-score support
0 0.67 0.67 0.67 3
1 0.75 0.75 0.75 4
avg / total 0.71 0.71 0.71 7
[[2 1]
[1 3]]
*****************************
NB 57.14285714285714
precision recall f1-score support
0 0.00 0.00 0.00 3
1 0.57 1.00 0.73 4
avg / total 0.33 0.57 0.42 7
[[0 3]
[0 4]]
*****************************
/home/heimdall/anaconda3/lib/python3.6/site-packages/sklearn/metrics/classification.py:1135: UndefinedMetricWarning: Precision and F-score are ill-defined and being set to 0.0 in labels with no predicted samples.
'precision', 'predicted', average, warn_for)
SVM 42.857142857142854
precision recall f1-score support
0 0.43 1.00 0.60 3
1 0.00 0.00 0.00 4
avg / total 0.18 0.43 0.26 7
[[3 0]
[4 0]]
*****************************
GBC 71.42857142857143
precision recall f1-score support
0 0.67 0.67 0.67 3
1 0.75 0.75 0.75 4
avg / total 0.71 0.71 0.71 7
[[2 1]
[1 3]]
*****************************
SGD 42.857142857142854
precision recall f1-score support
0 0.40 0.67 0.50 3
1 0.50 0.25 0.33 4
avg / total 0.46 0.43 0.40 7
[[2 1]
[3 1]]
*****************************
MLP 57.14285714285714
precision recall f1-score support
0 0.00 0.00 0.00 3
1 0.57 1.00 0.73 4
avg / total 0.33 0.57 0.42 7
[[0 3]
[0 4]]
*****************************
KNN 85.71428571428571
precision recall f1-score support
0 0.75 1.00 0.86 3
1 1.00 0.75 0.86 4
avg / total 0.89 0.86 0.86 7
[[3 0]
[1 3]]
*****************************
max: LDA 85.71428571428571
Process finished with exit code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment