Page 351 - Una innovación a la mecánica cuántica
P. 351
Total dataset size:
n_samples: 1217
n_features: 1850
n_classes: 6
Extracting the top 150 eigenfaces from 912 faces
done in 0.194s
Projecting the input data on the eigenfaces orthonormal basis
done in 0.022s
Fitting the classifier to the training set
done in 4.325s
Best estimator found by grid search:
SVC(C=15919.575375045833,class_weight=’balanced’,
gamma=0.0035938240558826707)
Predicting people’s names on the test set
done in 0.046s
precision recall f1-score support
Ariel Sharon 0.89 0.57 0.70 14
Colin Powell 0.87 0.82 0.84 65
Donald Rumsfeld 0.92 0.67 0.77 33
George W. Bush 0.80 0.96 0.87 133
Gerhard Schroeder 1.00 0.78 0.88 23
Tony Blair 0.91 0.81 0.86 37
accuracy 0.85 305
macro avg 0.90 0.77 0.82 305
weighted avg 0.86 0.85 0.85 305
349

