Challenge: Classification Metrics
Breast Cancer Dataset Overview
The breast_cancer dataset from scikit-learn is a widely used binary classification dataset for predicting whether a tumor is malignant or benign based on various features computed from digitized images of fine needle aspirate (FNA) of breast masses.
Data Overview
- Number of samples: 569;
- Number of features: 30;
- Target variable:
target(0 = malignant, 1 = benign); - Task: Predict whether a tumor is malignant or benign based on the features above.
Дякуємо за ваш відгук!
single
Challenge: Classification Metrics
Свайпніть щоб показати меню
Breast Cancer Dataset Overview
The breast_cancer dataset from scikit-learn is a widely used binary classification dataset for predicting whether a tumor is malignant or benign based on various features computed from digitized images of fine needle aspirate (FNA) of breast masses.
Data Overview
- Number of samples: 569;
- Number of features: 30;
- Target variable:
target(0 = malignant, 1 = benign); - Task: Predict whether a tumor is malignant or benign based on the features above.
Проведіть, щоб почати кодувати
You are given a simple binary classification dataset. Your task is to:
-
Train a Logistic Regression model using scikit-learn.
-
Evaluate it with the following metrics:
- Accuracy.
- Precision.
- Recall.
- F1 Score.
- ROC–AUC Score.
- Confusion Matrix.
-
Perform 5-fold cross-validation and report the mean accuracy.
Finally, print all results clearly formatted, as shown below.
Рішення
Дякуємо за ваш відгук!
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат