SVM

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]

Model Selection

mean_correlation 10features feature_importances SVM

Logistic Regression

LR10

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

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)

RandomForest

Accuracy is: 0.958041958042

KNN

KNN

k=11 Test Accuracy: 0.965