The breast cancer detection app is a machine learning application that utilizes Scikit-learn to train a predictive model. The model is trained on a dataset of tabular data containing various features associated with breast cancer. The features are used to train the model to predict whether a given case is benign or malignant .The machine application is designed to be user-friendly and accessible to healthcare professionals, allowing them to quickly and accurately diagnose breast cancer using this powerful predictive tool. It has a performance of 97% accuracy on a hold-out test set.
The WISCONSIN Breast Cancer dataset is a widely used benchmark dataset for binary classification tasks. It contains information about breast cancer tumors, including attributes such as size, shape, and texture. There are a total of 569 instances in the dataset, with 212 malignant (M) and 357 benign (B) cases
The target contains 212 Malignant and 357 benign samples.
Here contains all the features that were used in training the model
The mean distance from the center to points on the perimeter of the tumor.
The perimeter (total length of the boundary) of the tumor.
The area enclosed by the perimeter of the tumor.
A measure of the severity of concave portions of the contour of the tumor.
The number of concave portions of the contour of the tumor.
The largest distance from the center to points on the perimeter of the tumor.
The largest perimeter (total length of the boundary) of the tumor.
The largest area enclosed by the perimeter of the tumor.
The largest measure of the severity of concave portions of the contour of the tumor.
The largest number of concave portions of the contour of the tumor.
The model was trained on 80% of the dataset, and was evaluated on the remaining 20% of the data.
The classification report shows the precision and recall scores on each of the labels and also the f1-scores.
The confusion matrix shows the distribution of predictions and how well they got predicted. On the test set , we have no false positives and very little false negatives
You can test the flask application using pytest by running
pytest
in the root directory of the project
- Python >= 3.7
- Flask >= 2.2.1
- Scikit-learn >= 1.2.1