Nowadays Machine Learning is used in different domains. From recommending movies to detecting any disease, machine learning is the most talked thing in today's world of technology. Breast Cancer is one of the most common diseases among women. Early diagnosis of such cases can reduce the risk and increases the chance of survival. Diagnosis of the right time can prevent patients from undergoing unnecessary treatments and operations.
Machine Learning Kit will be shipped to you and you can learn and build using tutorials. You can start for free today!
The goal of the project is to classify the cancer is malignant or benign. Also, which features help predict breast cancer.
Some risk factors are directly or indirectly associated with breast cancers. We have listed down a few:
Want to develop practical skills on Machine Learning? Checkout our latest projects and start learning for free
Hardware and software specification:
pip install NumPy as np
pip install pandas as pd
pip install matplotlib.pyplot as plt
example – data = read.csv("../input/data.csv")
Use the code
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split( X, y, test_size = 0.33, random_state = 42)
From sklearn.metrics import confusion_
By using KNN we got our prediction 95.1% which is a decent result, though we can increase the accuracy of our prediction. There are several algorithms to predict breast cancer but we have used the KNN algorithm for the prediction.
Skyfi Labs helps students learn practical skills by building real-world projects.
You can enrol with friends and receive kits at your doorstep
You can learn from experts, build working projects, showcase skills to the world and grab the best jobs.
Get started today!
Stay up-to-date and build projects on latest technologies