sklearn常用模块及类及方法----机器学习Python

来源:互联网 发布:js地球仪特效 编辑:程序博客网 时间:2024/05/17 23:33
常见机器学习模型
所在的位置补充StandardScalersklearn.preprocessing
LabelEncodersklearn.preprocessing
train_test_splitsklearn.cross_validation方法(小写PCAsklearn.decomposition
LogisticRegressionsklearn.linear_model




  • preprocessing

    • from sklearn.preprocessing import StandardScaler
    • from sklearn.preprocessing import LabelEncoder
  • pipeline

    • from sklearn.pipeline import _name_estimators

datasets

数据集说明from sklearn.datasets import make_moons二分类的非线性可分数据集from sklearn.datasets import make_circles二分类的非线性可分数据集




进行Python命令行界面:

>>> help(sklearn)


这里写图片描述

紧接着我们想查看ensemble(package)中都有哪些类与方法:

>>> from sklearn import ensemble>>> dir(ensemble)
这里写图片描述
1 0
原创粉丝点击