Created
October 22, 2019 13:57
-
-
Save Neeratyoy/a8c09d073a159a34267745534b6e8af3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"import openml\n", | |
"\n", | |
"import numpy as np\n", | |
"import pandas as pd" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 2, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"(2958, 16)\n", | |
"did\n", | |
"name\n", | |
"version\n", | |
"uploader\n", | |
"status\n", | |
"format\n", | |
"MajorityClassSize\n", | |
"MaxNominalAttDistinctValues\n", | |
"MinorityClassSize\n", | |
"NumberOfClasses\n", | |
"NumberOfFeatures\n", | |
"NumberOfInstances\n", | |
"NumberOfInstancesWithMissingValues\n", | |
"NumberOfMissingValues\n", | |
"NumberOfNumericFeatures\n", | |
"NumberOfSymbolicFeatures\n" | |
] | |
} | |
], | |
"source": [ | |
"# Fetching the list of all available datasets on OpenML\n", | |
"d = openml.datasets.list_datasets(output_format='dataframe')\n", | |
"print(d.shape)\n", | |
"\n", | |
"# Listing column names or attributes that OpenML offers\n", | |
"for name in d.columns:\n", | |
" print(name)" | |
] | |
} | |
], | |
"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