SVM
Visualize the confusion matrix to see how accurate are the results we obtained. Accuracy is: 0.986013986014, F1-score is: 0.99. The best Model for prediction (detection of breast cancer type) is SVM which has a great F1 score 0.99.
First 25 Predictions: [0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0]
First 25 Actual labels: [0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0]
Logistic Regression
Visualize the confusion matrix to see how accurate are the results we obtained. Accuracy: 0.944055944056
True: [0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 1 0 0 1 0 1 1 0 0 0]
Pred: [0 0 1 0 0 1 0 0 0 1 1 0 1 0 1 1 0 0 1 0 1 1 0 0 0]
GridSearch
Visualize the confusion matrix to see how accurate are the results we obtained. Grid.best_score is: 0.943661971831; F1-score is: 0.98
Grid.best_score is: 0.943661971831; F1-score is: 0.98
F1-score is: 0.98
Trees(RandomForestClassifier)
Accuracy is: 0.958041958042
KNN
k=11 Test Accuracy: 0.965