For 2 components, accuracy is 0.453416149068 confusion matrix is:
[[ 0 0 0 13 0 0 0]
[ 0 0 0 60 0 0 0]
[ 0 0 0 27 0 0 0]
[ 0 0 0 146 0 0 0]
[ 0 0 0 25 0 0 0]
[ 0 0 0 15 0 0 0]
[ 0 0 0 36 0 0 0]]
precision recall f1-score support
Ariel Sharon 0.00 0.00 0.00 13
Colin Powell 0.00 0.00 0.00 60
Donald Rumsfeld 0.00 0.00 0.00 27
George W Bush 0.45 1.00 0.62 146
Gerhard Schroeder 0.00 0.00 0.00 25
Hugo Chavez 0.00 0.00 0.00 15
Tony Blair 0.00 0.00 0.00 36
avg / total 0.21 0.45 0.28 322
/home/chandu/anaconda2/lib/python2.7/site-packages/sklearn/metrics/classification.py:1113: 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)
For 4 components, accuracy is 0.453416149068 confusion matrix is:
[[ 0 0 0 13 0 0 0]
[ 0 0 0 60 0 0 0]
[ 0 0 0 27 0 0 0]
[ 0 0 0 146 0 0 0]
[ 0 0 0 25 0 0 0]
[ 0 0 0 15 0 0 0]
[ 0 0 0 36 0 0 0]]
precision recall f1-score support
Ariel Sharon 0.00 0.00 0.00 13
Colin Powell 0.00 0.00 0.00 60
Donald Rumsfeld 0.00 0.00 0.00 27
George W Bush 0.45 1.00 0.62 146
Gerhard Schroeder 0.00 0.00 0.00 25
Hugo Chavez 0.00 0.00 0.00 15
Tony Blair 0.00 0.00 0.00 36
avg / total 0.21 0.45 0.28 322
For 6 components, accuracy is 0.453416149068 confusion matrix is:
[[ 0 0 0 13 0 0 0]
[ 0 0 0 60 0 0 0]
[ 0 0 0 27 0 0 0]
[ 0 0 0 146 0 0 0]
[ 0 0 0 25 0 0 0]
[ 0 0 0 15 0 0 0]
[ 0 0 0 36 0 0 0]]
precision recall f1-score support
Ariel Sharon 0.00 0.00 0.00 13
Colin Powell 0.00 0.00 0.00 60
Donald Rumsfeld 0.00 0.00 0.00 27
George W Bush 0.45 1.00 0.62 146
Gerhard Schroeder 0.00 0.00 0.00 25
Hugo Chavez 0.00 0.00 0.00 15
Tony Blair 0.00 0.00 0.00 36
avg / total 0.21 0.45 0.28 322
For 8 components, accuracy is 0.453416149068 confusion matrix is:
[[ 0 0 0 13 0 0 0]
[ 0 0 0 60 0 0 0]
[ 0 0 0 27 0 0 0]
[ 0 0 0 146 0 0 0]
[ 0 0 0 25 0 0 0]
[ 0 0 0 15 0 0 0]
[ 0 0 0 36 0 0 0]]
precision recall f1-score support
Ariel Sharon 0.00 0.00 0.00 13
Colin Powell 0.00 0.00 0.00 60
Donald Rumsfeld 0.00 0.00 0.00 27
George W Bush 0.45 1.00 0.62 146
Gerhard Schroeder 0.00 0.00 0.00 25
Hugo Chavez 0.00 0.00 0.00 15
Tony Blair 0.00 0.00 0.00 36
avg / total 0.21 0.45 0.28 322
For 10 components, accuracy is 0.453416149068 confusion matrix is:
[[ 0 0 0 13 0 0 0]
[ 0 0 0 60 0 0 0]
[ 0 0 0 27 0 0 0]
[ 0 0 0 146 0 0 0]
[ 0 0 0 25 0 0 0]
[ 0 0 0 15 0 0 0]
[ 0 0 0 36 0 0 0]]
precision recall f1-score support
Ariel Sharon 0.00 0.00 0.00 13
Colin Powell 0.00 0.00 0.00 60
Donald Rumsfeld 0.00 0.00 0.00 27
George W Bush 0.45 1.00 0.62 146
Gerhard Schroeder 0.00 0.00 0.00 25
Hugo Chavez 0.00 0.00 0.00 15
Tony Blair 0.00 0.00 0.00 36
avg / total 0.21 0.45 0.28 322
For 12 components, accuracy is 0.453416149068 confusion matrix is:
[[ 0 0 0 13 0 0 0]
[ 0 0 0 60 0 0 0]
[ 0 0 0 27 0 0 0]
[ 0 0 0 146 0 0 0]
[ 0 0 0 25 0 0 0]
[ 0 0 0 15 0 0 0]
[ 0 0 0 36 0 0 0]]
precision recall f1-score support
Ariel Sharon 0.00 0.00 0.00 13
Colin Powell 0.00 0.00 0.00 60
Donald Rumsfeld 0.00 0.00 0.00 27
George W Bush 0.45 1.00 0.62 146
Gerhard Schroeder 0.00 0.00 0.00 25
Hugo Chavez 0.00 0.00 0.00 15
Tony Blair 0.00 0.00 0.00 36
avg / total 0.21 0.45 0.28 322
For 14 components, accuracy is 0.453416149068 confusion matrix is:
[[ 0 0 0 13 0 0 0]
[ 0 0 0 60 0 0 0]
[ 0 0 0 27 0 0 0]
[ 0 0 0 146 0 0 0]
[ 0 0 0 25 0 0 0]
[ 0 0 0 15 0 0 0]
[ 0 0 0 36 0 0 0]]
precision recall f1-score support
Ariel Sharon 0.00 0.00 0.00 13
Colin Powell 0.00 0.00 0.00 60
Donald Rumsfeld 0.00 0.00 0.00 27
George W Bush 0.45 1.00 0.62 146
Gerhard Schroeder 0.00 0.00 0.00 25
Hugo Chavez 0.00 0.00 0.00 15
Tony Blair 0.00 0.00 0.00 36
avg / total 0.21 0.45 0.28 322
For 16 components, accuracy is 0.453416149068 confusion matrix is:
[[ 0 0 0 13 0 0 0]
[ 0 0 0 60 0 0 0]
[ 0 0 0 27 0 0 0]
[ 0 0 0 146 0 0 0]
[ 0 0 0 25 0 0 0]
[ 0 0 0 15 0 0 0]
[ 0 0 0 36 0 0 0]]
precision recall f1-score support
Ariel Sharon 0.00 0.00 0.00 13
Colin Powell 0.00 0.00 0.00 60
Donald Rumsfeld 0.00 0.00 0.00 27
George W Bush 0.45 1.00 0.62 146
Gerhard Schroeder 0.00 0.00 0.00 25
Hugo Chavez 0.00 0.00 0.00 15
Tony Blair 0.00 0.00 0.00 36
avg / total 0.21 0.45 0.28 322
For 18 components, accuracy is 0.453416149068 confusion matrix is:
[[ 0 0 0 13 0 0 0]
[ 0 0 0 60 0 0 0]
[ 0 0 0 27 0 0 0]
[ 0 0 0 146 0 0 0]
[ 0 0 0 25 0 0 0]
[ 0 0 0 15 0 0 0]
[ 0 0 0 36 0 0 0]]
precision recall f1-score support
Ariel Sharon 0.00 0.00 0.00 13
Colin Powell 0.00 0.00 0.00 60
Donald Rumsfeld 0.00 0.00 0.00 27
George W Bush 0.45 1.00 0.62 146
Gerhard Schroeder 0.00 0.00 0.00 25
Hugo Chavez 0.00 0.00 0.00 15
Tony Blair 0.00 0.00 0.00 36
avg / total 0.21 0.45 0.28 322
For 20 components, accuracy is 0.453416149068 confusion matrix is:
[[ 0 0 0 13 0 0 0]
[ 0 0 0 60 0 0 0]
[ 0 0 0 27 0 0 0]
[ 0 0 0 146 0 0 0]
[ 0 0 0 25 0 0 0]
[ 0 0 0 15 0 0 0]
[ 0 0 0 36 0 0 0]]
precision recall f1-score support
Ariel Sharon 0.00 0.00 0.00 13
Colin Powell 0.00 0.00 0.00 60
Donald Rumsfeld 0.00 0.00 0.00 27
George W Bush 0.45 1.00 0.62 146
Gerhard Schroeder 0.00 0.00 0.00 25
Hugo Chavez 0.00 0.00 0.00 15
Tony Blair 0.00 0.00 0.00 36
avg / total 0.21 0.45 0.28 322
For 22 components, accuracy is 0.453416149068 confusion matrix is:
[[ 0 0 0 13 0 0 0]
[ 0 0 0 60 0 0 0]
[ 0 0 0 27 0 0 0]
[ 0 0 0 146 0 0 0]
[ 0 0 0 25 0 0 0]
[ 0 0 0 15 0 0 0]
[ 0 0 0 36 0 0 0]]
precision recall f1-score support
Ariel Sharon 0.00 0.00 0.00 13
Colin Powell 0.00 0.00 0.00 60
Donald Rumsfeld 0.00 0.00 0.00 27
George W Bush 0.45 1.00 0.62 146
Gerhard Schroeder 0.00 0.00 0.00 25
Hugo Chavez 0.00 0.00 0.00 15
Tony Blair 0.00 0.00 0.00 36
avg / total 0.21 0.45 0.28 322
For 24 components, accuracy is 0.453416149068 confusion matrix is:
[[ 0 0 0 13 0 0 0]
[ 0 0 0 60 0 0 0]
[ 0 0 0 27 0 0 0]
[ 0 0 0 146 0 0 0]
[ 0 0 0 25 0 0 0]
[ 0 0 0 15 0 0 0]
[ 0 0 0 36 0 0 0]]
precision recall f1-score support
Ariel Sharon 0.00 0.00 0.00 13
Colin Powell 0.00 0.00 0.00 60
Donald Rumsfeld 0.00 0.00 0.00 27
George W Bush 0.45 1.00 0.62 146
Gerhard Schroeder 0.00 0.00 0.00 25
Hugo Chavez 0.00 0.00 0.00 15
Tony Blair 0.00 0.00 0.00 36
avg / total 0.21 0.45 0.28 322
For 26 components, accuracy is 0.453416149068 confusion matrix is:
[[ 0 0 0 13 0 0 0]
[ 0 0 0 60 0 0 0]
[ 0 0 0 27 0 0 0]
[ 0 0 0 146 0 0 0]
[ 0 0 0 25 0 0 0]
[ 0 0 0 15 0 0 0]
[ 0 0 0 36 0 0 0]]
precision recall f1-score support
Ariel Sharon 0.00 0.00 0.00 13
Colin Powell 0.00 0.00 0.00 60
Donald Rumsfeld 0.00 0.00 0.00 27
George W Bush 0.45 1.00 0.62 146
Gerhard Schroeder 0.00 0.00 0.00 25
Hugo Chavez 0.00 0.00 0.00 15
Tony Blair 0.00 0.00 0.00 36
avg / total 0.21 0.45 0.28 322
For 28 components, accuracy is 0.453416149068 confusion matrix is:
[[ 0 0 0 13 0 0 0]
[ 0 0 0 60 0 0 0]
[ 0 0 0 27 0 0 0]
[ 0 0 0 146 0 0 0]
[ 0 0 0 25 0 0 0]
[ 0 0 0 15 0 0 0]
[ 0 0 0 36 0 0 0]]
precision recall f1-score support
Ariel Sharon 0.00 0.00 0.00 13
Colin Powell 0.00 0.00 0.00 60
Donald Rumsfeld 0.00 0.00 0.00 27
George W Bush 0.45 1.00 0.62 146
Gerhard Schroeder 0.00 0.00 0.00 25
Hugo Chavez 0.00 0.00 0.00 15
Tony Blair 0.00 0.00 0.00 36
avg / total 0.21 0.45 0.28 322