Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lab_model_evaluation] Mikel Vallejo #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
107 changes: 90 additions & 17 deletions your-code/main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -35,7 +35,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -57,11 +57,51 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Your code here:\n"
"execution_count": 3,
"metadata": {},
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
" class cap-shape cap-surface cap-color bruises odor gill-attachment \\\n",
"0 p x s n t p f \n",
"1 e x s y t a f \n",
"2 e b s w t l f \n",
"3 p x y w t p f \n",
"4 e x s g f n f \n",
"\n",
" gill-spacing gill-size gill-color ... stalk-surface-below-ring \\\n",
"0 c n k ... s \n",
"1 c b k ... s \n",
"2 c b n ... s \n",
"3 c n n ... s \n",
"4 w b k ... s \n",
"\n",
" stalk-color-above-ring stalk-color-below-ring veil-type veil-color \\\n",
"0 w w p w \n",
"1 w w p w \n",
"2 w w p w \n",
"3 w w p w \n",
"4 w w p w \n",
"\n",
" ring-number ring-type spore-print-color population habitat \n",
"0 o p k s u \n",
"1 o p n n g \n",
"2 o p n n m \n",
"3 o p k s u \n",
"4 o e n a g \n",
"\n",
"[5 rows x 23 columns]"
],
"text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>class</th>\n <th>cap-shape</th>\n <th>cap-surface</th>\n <th>cap-color</th>\n <th>bruises</th>\n <th>odor</th>\n <th>gill-attachment</th>\n <th>gill-spacing</th>\n <th>gill-size</th>\n <th>gill-color</th>\n <th>...</th>\n <th>stalk-surface-below-ring</th>\n <th>stalk-color-above-ring</th>\n <th>stalk-color-below-ring</th>\n <th>veil-type</th>\n <th>veil-color</th>\n <th>ring-number</th>\n <th>ring-type</th>\n <th>spore-print-color</th>\n <th>population</th>\n <th>habitat</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>0</th>\n <td>p</td>\n <td>x</td>\n <td>s</td>\n <td>n</td>\n <td>t</td>\n <td>p</td>\n <td>f</td>\n <td>c</td>\n <td>n</td>\n <td>k</td>\n <td>...</td>\n <td>s</td>\n <td>w</td>\n <td>w</td>\n <td>p</td>\n <td>w</td>\n <td>o</td>\n <td>p</td>\n <td>k</td>\n <td>s</td>\n <td>u</td>\n </tr>\n <tr>\n <th>1</th>\n <td>e</td>\n <td>x</td>\n <td>s</td>\n <td>y</td>\n <td>t</td>\n <td>a</td>\n <td>f</td>\n <td>c</td>\n <td>b</td>\n <td>k</td>\n <td>...</td>\n <td>s</td>\n <td>w</td>\n <td>w</td>\n <td>p</td>\n <td>w</td>\n <td>o</td>\n <td>p</td>\n <td>n</td>\n <td>n</td>\n <td>g</td>\n </tr>\n <tr>\n <th>2</th>\n <td>e</td>\n <td>b</td>\n <td>s</td>\n <td>w</td>\n <td>t</td>\n <td>l</td>\n <td>f</td>\n <td>c</td>\n <td>b</td>\n <td>n</td>\n <td>...</td>\n <td>s</td>\n <td>w</td>\n <td>w</td>\n <td>p</td>\n <td>w</td>\n <td>o</td>\n <td>p</td>\n <td>n</td>\n <td>n</td>\n <td>m</td>\n </tr>\n <tr>\n <th>3</th>\n <td>p</td>\n <td>x</td>\n <td>y</td>\n <td>w</td>\n <td>t</td>\n <td>p</td>\n <td>f</td>\n <td>c</td>\n <td>n</td>\n <td>n</td>\n <td>...</td>\n <td>s</td>\n <td>w</td>\n <td>w</td>\n <td>p</td>\n <td>w</td>\n <td>o</td>\n <td>p</td>\n <td>k</td>\n <td>s</td>\n <td>u</td>\n </tr>\n <tr>\n <th>4</th>\n <td>e</td>\n <td>x</td>\n <td>s</td>\n <td>g</td>\n <td>f</td>\n <td>n</td>\n <td>f</td>\n <td>w</td>\n <td>b</td>\n <td>k</td>\n <td>...</td>\n <td>s</td>\n <td>w</td>\n <td>w</td>\n <td>p</td>\n <td>w</td>\n <td>o</td>\n <td>e</td>\n <td>n</td>\n <td>a</td>\n <td>g</td>\n </tr>\n </tbody>\n</table>\n<p>5 rows × 23 columns</p>\n</div>"
},
"metadata": {},
"execution_count": 3
}
],
"source": [
"mushrooms.head()\n"
]
},
{
Expand All @@ -75,11 +115,45 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Your code here:\n"
"execution_count": 4,
"metadata": {},
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"class object\n",
"cap-shape object\n",
"cap-surface object\n",
"cap-color object\n",
"bruises object\n",
"odor object\n",
"gill-attachment object\n",
"gill-spacing object\n",
"gill-size object\n",
"gill-color object\n",
"stalk-shape object\n",
"stalk-root object\n",
"stalk-surface-above-ring object\n",
"stalk-surface-below-ring object\n",
"stalk-color-above-ring object\n",
"stalk-color-below-ring object\n",
"veil-type object\n",
"veil-color object\n",
"ring-number object\n",
"ring-type object\n",
"spore-print-color object\n",
"population object\n",
"habitat object\n",
"dtype: object"
]
},
"metadata": {},
"execution_count": 4
}
],
"source": [
"mushrooms.dtypes\n"
]
},
{
Expand Down Expand Up @@ -493,9 +567,8 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
"name": "python385jvsc74a57bd0e134e05457d34029b6460cd73bbf1ed73f339b5b6d98c95be70b69eba114fe95",
"display_name": "Python 3.8.5 64-bit ('base': conda)"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -507,9 +580,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.1"
"version": "3.8.5"
}
},
"nbformat": 4,
"nbformat_minor": 1
}
}