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!
1. Machine Learning (Career Building Course)
2. Fraud Detection using Machine Learning
3. Machine Learning using Python
4. Movie Recommendation using ML
5. Handwritten Digits Recognition using ML
Objectives
The goal of the project is to classify the cancer is malignant or benign. Also, which features help predict breast cancer.
Risk factors
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
Concepts used:
Hardware and software specification:
Implementations:
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)
Knn.score(X_test,y_test)
From sklearn.metrics import confusion_
Conclusion:
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!
Join 250,000+ students from 36+ countries & develop practical skills by building projects
Get kits shipped in 24 hours. Build using online tutorials.
Stay up-to-date and build projects on latest technologies