{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "33bb05c7", "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import numpy as np\n", "import seaborn as sns\n", "import matplotlib.pyplot as plt\n", "\n", "from sklearn.datasets import load_breast_cancer\n", "import plotting" ] }, { "cell_type": "code", "execution_count": null, "id": "f769dc59", "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": 2, "id": "3fcd99e5", "metadata": {}, "outputs": [ { "data": { "application/vnd.microsoft.datawrangler.viewer.v0+json": { "columns": [ { "name": "index", "rawType": "int64", "type": "integer" }, { "name": "mean radius", "rawType": "float64", "type": "float" }, { "name": "mean texture", "rawType": "float64", "type": "float" }, { "name": "mean perimeter", "rawType": "float64", "type": "float" }, { "name": "mean area", "rawType": "float64", "type": "float" }, { "name": "mean smoothness", "rawType": "float64", "type": "float" }, { "name": "mean compactness", "rawType": "float64", "type": "float" }, { "name": "mean concavity", "rawType": "float64", "type": "float" }, { "name": "mean concave points", "rawType": "float64", "type": "float" }, { "name": "mean symmetry", "rawType": "float64", "type": "float" }, { "name": "mean fractal dimension", "rawType": "float64", "type": "float" }, { "name": "radius error", "rawType": "float64", "type": "float" }, { "name": "texture error", "rawType": "float64", "type": "float" }, { "name": "perimeter error", "rawType": "float64", "type": "float" }, { "name": "area error", "rawType": "float64", "type": "float" }, { "name": "smoothness error", "rawType": "float64", "type": "float" }, { "name": "compactness error", "rawType": "float64", "type": "float" }, { "name": "concavity error", "rawType": "float64", "type": "float" }, { "name": "concave points error", "rawType": "float64", "type": "float" }, { "name": "symmetry error", "rawType": "float64", "type": "float" }, { "name": "fractal dimension error", "rawType": "float64", "type": "float" }, { "name": "worst radius", "rawType": "float64", "type": "float" }, { "name": "worst texture", "rawType": "float64", "type": "float" }, { "name": "worst perimeter", "rawType": "float64", "type": "float" }, { "name": "worst area", "rawType": "float64", "type": "float" }, { "name": "worst smoothness", "rawType": "float64", "type": "float" }, { "name": "worst compactness", "rawType": "float64", "type": "float" }, { "name": "worst concavity", "rawType": "float64", "type": "float" }, { "name": "worst concave points", "rawType": "float64", "type": "float" }, { "name": "worst symmetry", "rawType": "float64", "type": "float" }, { "name": "worst fractal dimension", "rawType": "float64", "type": "float" }, { "name": "target", "rawType": "int64", "type": "integer" } ], "ref": "4f45219c-6165-4f9d-9d7b-9588581841b6", "rows": [ [ "0", "17.99", "10.38", "122.8", "1001.0", "0.1184", "0.2776", "0.3001", "0.1471", "0.2419", "0.07871", "1.095", "0.9053", "8.589", "153.4", "0.006399", "0.04904", "0.05373", "0.01587", "0.03003", "0.006193", "25.38", "17.33", "184.6", "2019.0", "0.1622", "0.6656", "0.7119", "0.2654", "0.4601", "0.1189", "0" ], [ "1", "20.57", "17.77", "132.9", "1326.0", "0.08474", "0.07864", "0.0869", "0.07017", "0.1812", "0.05667", "0.5435", "0.7339", "3.398", "74.08", "0.005225", "0.01308", "0.0186", "0.0134", "0.01389", "0.003532", "24.99", "23.41", "158.8", "1956.0", "0.1238", "0.1866", "0.2416", "0.186", "0.275", "0.08902", "0" ], [ "2", "19.69", "21.25", "130.0", "1203.0", "0.1096", "0.1599", "0.1974", "0.1279", "0.2069", "0.05999", "0.7456", "0.7869", "4.585", "94.03", "0.00615", "0.04006", "0.03832", "0.02058", "0.0225", "0.004571", "23.57", "25.53", "152.5", "1709.0", "0.1444", "0.4245", "0.4504", "0.243", "0.3613", "0.08758", "0" ], [ "3", "11.42", "20.38", "77.58", "386.1", "0.1425", "0.2839", "0.2414", "0.1052", "0.2597", "0.09744", "0.4956", "1.156", "3.445", "27.23", "0.00911", "0.07458", "0.05661", "0.01867", "0.05963", "0.009208", "14.91", "26.5", "98.87", "567.7", "0.2098", "0.8663", "0.6869", "0.2575", "0.6638", "0.173", "0" ], [ "4", "20.29", "14.34", "135.1", "1297.0", "0.1003", "0.1328", "0.198", "0.1043", "0.1809", "0.05883", "0.7572", "0.7813", "5.438", "94.44", "0.01149", "0.02461", "0.05688", "0.01885", "0.01756", "0.005115", "22.54", "16.67", "152.2", "1575.0", "0.1374", "0.205", "0.4", "0.1625", "0.2364", "0.07678", "0" ] ], "shape": { "columns": 31, "rows": 5 } }, "text/html": [ "
| \n", " | mean radius | \n", "mean texture | \n", "mean perimeter | \n", "mean area | \n", "mean smoothness | \n", "mean compactness | \n", "mean concavity | \n", "mean concave points | \n", "mean symmetry | \n", "mean fractal dimension | \n", "... | \n", "worst texture | \n", "worst perimeter | \n", "worst area | \n", "worst smoothness | \n", "worst compactness | \n", "worst concavity | \n", "worst concave points | \n", "worst symmetry | \n", "worst fractal dimension | \n", "target | \n", "
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", "17.99 | \n", "10.38 | \n", "122.80 | \n", "1001.0 | \n", "0.11840 | \n", "0.27760 | \n", "0.3001 | \n", "0.14710 | \n", "0.2419 | \n", "0.07871 | \n", "... | \n", "17.33 | \n", "184.60 | \n", "2019.0 | \n", "0.1622 | \n", "0.6656 | \n", "0.7119 | \n", "0.2654 | \n", "0.4601 | \n", "0.11890 | \n", "0 | \n", "
| 1 | \n", "20.57 | \n", "17.77 | \n", "132.90 | \n", "1326.0 | \n", "0.08474 | \n", "0.07864 | \n", "0.0869 | \n", "0.07017 | \n", "0.1812 | \n", "0.05667 | \n", "... | \n", "23.41 | \n", "158.80 | \n", "1956.0 | \n", "0.1238 | \n", "0.1866 | \n", "0.2416 | \n", "0.1860 | \n", "0.2750 | \n", "0.08902 | \n", "0 | \n", "
| 2 | \n", "19.69 | \n", "21.25 | \n", "130.00 | \n", "1203.0 | \n", "0.10960 | \n", "0.15990 | \n", "0.1974 | \n", "0.12790 | \n", "0.2069 | \n", "0.05999 | \n", "... | \n", "25.53 | \n", "152.50 | \n", "1709.0 | \n", "0.1444 | \n", "0.4245 | \n", "0.4504 | \n", "0.2430 | \n", "0.3613 | \n", "0.08758 | \n", "0 | \n", "
| 3 | \n", "11.42 | \n", "20.38 | \n", "77.58 | \n", "386.1 | \n", "0.14250 | \n", "0.28390 | \n", "0.2414 | \n", "0.10520 | \n", "0.2597 | \n", "0.09744 | \n", "... | \n", "26.50 | \n", "98.87 | \n", "567.7 | \n", "0.2098 | \n", "0.8663 | \n", "0.6869 | \n", "0.2575 | \n", "0.6638 | \n", "0.17300 | \n", "0 | \n", "
| 4 | \n", "20.29 | \n", "14.34 | \n", "135.10 | \n", "1297.0 | \n", "0.10030 | \n", "0.13280 | \n", "0.1980 | \n", "0.10430 | \n", "0.1809 | \n", "0.05883 | \n", "... | \n", "16.67 | \n", "152.20 | \n", "1575.0 | \n", "0.1374 | \n", "0.2050 | \n", "0.4000 | \n", "0.1625 | \n", "0.2364 | \n", "0.07678 | \n", "0 | \n", "
5 rows × 31 columns
\n", "