| \n", + " | class | \n", + "cap-shape | \n", + "cap-surface | \n", + "cap-color | \n", + "bruises | \n", + "odor | \n", + "gill-attachment | \n", + "gill-spacing | \n", + "gill-size | \n", + "gill-color | \n", + "... | \n", + "stalk-surface-below-ring | \n", + "stalk-color-above-ring | \n", + "stalk-color-below-ring | \n", + "veil-type | \n", + "veil-color | \n", + "ring-number | \n", + "ring-type | \n", + "spore-print-color | \n", + "population | \n", + "habitat | \n", + "
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| count | \n", + "8124 | \n", + "8124 | \n", + "8124 | \n", + "8124 | \n", + "8124 | \n", + "8124 | \n", + "8124 | \n", + "8124 | \n", + "8124 | \n", + "8124 | \n", + "... | \n", + "8124 | \n", + "8124 | \n", + "8124 | \n", + "8124 | \n", + "8124 | \n", + "8124 | \n", + "8124 | \n", + "8124 | \n", + "8124 | \n", + "8124 | \n", + "
| unique | \n", + "2 | \n", + "6 | \n", + "4 | \n", + "10 | \n", + "2 | \n", + "9 | \n", + "2 | \n", + "2 | \n", + "2 | \n", + "12 | \n", + "... | \n", + "4 | \n", + "9 | \n", + "9 | \n", + "1 | \n", + "4 | \n", + "3 | \n", + "5 | \n", + "9 | \n", + "6 | \n", + "7 | \n", + "
| top | \n", + "e | \n", + "x | \n", + "y | \n", + "n | \n", + "f | \n", + "n | \n", + "f | \n", + "c | \n", + "b | \n", + "b | \n", + "... | \n", + "s | \n", + "w | \n", + "w | \n", + "p | \n", + "w | \n", + "o | \n", + "p | \n", + "w | \n", + "v | \n", + "d | \n", + "
| freq | \n", + "4208 | \n", + "3656 | \n", + "3244 | \n", + "2284 | \n", + "4748 | \n", + "3528 | \n", + "7914 | \n", + "6812 | \n", + "5612 | \n", + "1728 | \n", + "... | \n", + "4936 | \n", + "4464 | \n", + "4384 | \n", + "8124 | \n", + "7924 | \n", + "7488 | \n", + "3968 | \n", + "2388 | \n", + "4040 | \n", + "3148 | \n", + "
4 rows × 23 columns
\n", + "| \n", + " | class | \n", + "cap-shape | \n", + "cap-surface | \n", + "cap-color | \n", + "bruises | \n", + "odor | \n", + "gill-attachment | \n", + "gill-spacing | \n", + "gill-size | \n", + "gill-color | \n", + "... | \n", + "stalk-surface-below-ring | \n", + "stalk-color-above-ring | \n", + "stalk-color-below-ring | \n", + "veil-type | \n", + "veil-color | \n", + "ring-number | \n", + "ring-type | \n", + "spore-print-color | \n", + "population | \n", + "habitat | \n", + "
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", + "p | \n", + "x | \n", + "s | \n", + "n | \n", + "t | \n", + "p | \n", + "f | \n", + "c | \n", + "n | \n", + "k | \n", + "... | \n", + "s | \n", + "w | \n", + "w | \n", + "p | \n", + "w | \n", + "o | \n", + "p | \n", + "k | \n", + "s | \n", + "u | \n", + "
| 1 | \n", + "e | \n", + "x | \n", + "s | \n", + "y | \n", + "t | \n", + "a | \n", + "f | \n", + "c | \n", + "b | \n", + "k | \n", + "... | \n", + "s | \n", + "w | \n", + "w | \n", + "p | \n", + "w | \n", + "o | \n", + "p | \n", + "n | \n", + "n | \n", + "g | \n", + "
| 2 | \n", + "e | \n", + "b | \n", + "s | \n", + "w | \n", + "t | \n", + "l | \n", + "f | \n", + "c | \n", + "b | \n", + "n | \n", + "... | \n", + "s | \n", + "w | \n", + "w | \n", + "p | \n", + "w | \n", + "o | \n", + "p | \n", + "n | \n", + "n | \n", + "m | \n", + "
| 3 | \n", + "p | \n", + "x | \n", + "y | \n", + "w | \n", + "t | \n", + "p | \n", + "f | \n", + "c | \n", + "n | \n", + "n | \n", + "... | \n", + "s | \n", + "w | \n", + "w | \n", + "p | \n", + "w | \n", + "o | \n", + "p | \n", + "k | \n", + "s | \n", + "u | \n", + "
| 4 | \n", + "e | \n", + "x | \n", + "s | \n", + "g | \n", + "f | \n", + "n | \n", + "f | \n", + "w | \n", + "b | \n", + "k | \n", + "... | \n", + "s | \n", + "w | \n", + "w | \n", + "p | \n", + "w | \n", + "o | \n", + "e | \n", + "n | \n", + "a | \n", + "g | \n", + "
5 rows × 23 columns
\n", + "| \n", + " | 0 | \n", + "
|---|---|
| class | \n", + "0 | \n", + "
| cap-shape | \n", + "0 | \n", + "
| cap-surface | \n", + "0 | \n", + "
| cap-color | \n", + "0 | \n", + "
| bruises | \n", + "0 | \n", + "
| odor | \n", + "0 | \n", + "
| gill-attachment | \n", + "0 | \n", + "
| gill-spacing | \n", + "0 | \n", + "
| gill-size | \n", + "0 | \n", + "
| gill-color | \n", + "0 | \n", + "
| stalk-shape | \n", + "0 | \n", + "
| stalk-root | \n", + "0 | \n", + "
| stalk-surface-above-ring | \n", + "0 | \n", + "
| stalk-surface-below-ring | \n", + "0 | \n", + "
| stalk-color-above-ring | \n", + "0 | \n", + "
| stalk-color-below-ring | \n", + "0 | \n", + "
| veil-type | \n", + "0 | \n", + "
| veil-color | \n", + "0 | \n", + "
| ring-number | \n", + "0 | \n", + "
| ring-type | \n", + "0 | \n", + "
| spore-print-color | \n", + "0 | \n", + "
| population | \n", + "0 | \n", + "
| habitat | \n", + "0 | \n", + "
| \n", + " | count | \n", + "
|---|---|
| class | \n", + "\n", + " |
| e | \n", + "4208 | \n", + "
| p | \n", + "3916 | \n", + "
KNeighborsClassifier()In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
KNeighborsClassifier()
LogisticRegression(max_iter=2000)In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
LogisticRegression(max_iter=2000)
RandomForestClassifier(random_state=42)In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
RandomForestClassifier(random_state=42)