Skip to content

Instantly share code, notes, and snippets.

@Neeratyoy
Created October 23, 2019 12:32
Show Gist options
  • Save Neeratyoy/d163274cdb23fd9eef3db717bb987ca8 to your computer and use it in GitHub Desktop.
Save Neeratyoy/d163274cdb23fd9eef3db717bb987ca8 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"OpenML Dataset\n",
"==============\n",
"Name..........: iris\n",
"Version.......: 1\n",
"Format........: ARFF\n",
"Upload Date...: 2014-04-06 23:23:39\n",
"Licence.......: Public\n",
"Download URL..: https://www.openml.org/data/v1/download/61/iris.arff\n",
"OpenML URL....: https://www.openml.org/d/61\n",
"# of features.: 5\n",
"# of instances: 150"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"iris = openml.datasets.get_dataset(61)\n",
"iris"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{0: [0 - sepallength (numeric)],\n",
" 1: [1 - sepalwidth (numeric)],\n",
" 2: [2 - petallength (numeric)],\n",
" 3: [3 - petalwidth (numeric)],\n",
" 4: [4 - class (nominal)]}"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"iris.features"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"**Author**: R.A. Fisher \n",
"**Source**: [UCI](https://archive.ics.uci.edu/ml/datasets/Iris) - 1936 - Donated by Michael Marshall \n",
"**Please cite**: \n",
"\n",
"**Iris Plants Database** \n",
"This is perhaps the best known database to be found in the pattern recognition literature. Fisher's paper is a classic in the field and is referenced frequently to this day. (See Duda & Hart, for example.) The data set contains 3 classes of 50 instances each, where each class refers to a type of iris plant. One class is linearly separable from the other 2; the latter are NOT linearly separable from each other.\n",
"\n",
"Predicted attribute: class of iris plant. \n",
"This is an exceedingly simple domain. \n",
" \n",
"### Attribute Information:\n",
" 1. sepal length in cm\n",
" 2. sepal width in cm\n",
" 3. petal length in cm\n",
" 4. petal width in cm\n",
" 5. class: \n",
" -- Iris Setosa\n",
" -- Iris Versicolour\n",
" -- Iris Virginica\n"
]
}
],
"source": [
"print(iris.description)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment