Back
Close

Computing with Data

elgeish
33.5K views
Previous: The pandas Package Next: Clustering

The scikit-learn Package

scikit-learn is a package that provides machine learning, data mining, and data analysis tools for Python:

from sklearn import datasets
iris = datasets.load_iris()
print(iris.feature_names) # columns
print(iris.data[:5]) # first 5 rows of the ndarray
print('...')
print(iris.DESCR) # description
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants