Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 26 additions & 15 deletions 01_materials/notebooks/Classification-1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Matplotlib is building the font cache; this may take a moment.\n"
]
}
],
"source": [
"import pandas as pd\n",
"import matplotlib.pyplot as plt\n",
Expand Down Expand Up @@ -468,13 +476,13 @@
"name": "stdout",
"output_type": "stream",
"text": [
"<class 'pandas.core.frame.DataFrame'>\n",
"<class 'pandas.DataFrame'>\n",
"RangeIndex: 569 entries, 0 to 568\n",
"Data columns (total 33 columns):\n",
"Data columns (total 32 columns):\n",
" # Column Non-Null Count Dtype \n",
"--- ------ -------------- ----- \n",
" 0 id 569 non-null int64 \n",
" 1 diagnosis 569 non-null object \n",
" 1 diagnosis 569 non-null str \n",
" 2 radius_mean 569 non-null float64\n",
" 3 texture_mean 569 non-null float64\n",
" 4 perimeter_mean 569 non-null float64\n",
Expand Down Expand Up @@ -505,9 +513,8 @@
" 29 concave points_worst 569 non-null float64\n",
" 30 symmetry_worst 569 non-null float64\n",
" 31 fractal_dimension_worst 569 non-null float64\n",
" 32 Unnamed: 32 0 non-null float64\n",
"dtypes: float64(31), int64(1), object(1)\n",
"memory usage: 146.8+ KB\n"
"dtypes: float64(30), int64(1), str(1)\n",
"memory usage: 142.4 KB\n"
]
}
],
Expand All @@ -531,7 +538,9 @@
{
"data": {
"text/plain": [
"array(['M', 'B'], dtype=object)"
"<StringArray>\n",
"['M', 'B']\n",
"Length: 2, dtype: str"
]
},
"execution_count": 4,
Expand All @@ -558,7 +567,9 @@
{
"data": {
"text/plain": [
"array(['Malignant', 'Benign'], dtype=object)"
"<StringArray>\n",
"['Malignant', 'Benign']\n",
"Length: 2, dtype: str"
]
},
"execution_count": 5,
Expand Down Expand Up @@ -596,7 +607,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand All @@ -608,7 +619,7 @@
"dtype: float64"
]
},
"execution_count": 6,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -626,7 +637,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 8,
"metadata": {},
"outputs": [
{
Expand All @@ -638,7 +649,7 @@
"Name: count, dtype: int64"
]
},
"execution_count": 21,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -2326,7 +2337,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "base",
"display_name": "lcr-env (3.11.14)",
"language": "python",
"name": "python3"
},
Expand All @@ -2340,7 +2351,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.11.14"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions 01_materials/notebooks/Classification-2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -2789,7 +2789,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "base",
"display_name": "lcr-env (3.11.14)",
"language": "python",
"name": "python3"
},
Expand All @@ -2803,7 +2803,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.10"
"version": "3.11.14"
}
},
"nbformat": 4,
Expand Down
Loading
Loading