您的位置:首页 > 编程语言 > Python开发

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

2017-03-06 17:58 316 查看
常见机器学习模型
所在的位置补充
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)
[/code]



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

>>> from sklearn import ensemble
>>> dir(ensemble)
[/code]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: