Target:记录学习过程中看到的模型python实现

特征处理

标准化

import sklearn.preprocessing

  • 官方文档:http://scikit-learn.org/stable/modules/preprocessing.html#preprocessing
  • 关键要素:要转换成数组
  • normalization( x-m/sigma)
    • 构造中心点:scaler = preprocessing.StandardScaler().fit(X_train)
    • 规范化:scaler.transform(X_train)
  • range( x-min / max-min)
    • min_max_scaler = preprocessing.MinMaxScaler()
    • X_train_minmax = min_max_scaler.fit_transform(X_train)

随机森林

from sklearn.ensemble import RandomForestRegressor

模型汇总图

机器学习模型python实现汇总

相关文章:

  • 2021-07-31
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-12-07
猜你喜欢
  • 2021-09-13
  • 2021-04-11
  • 2021-12-10
  • 2021-04-07
  • 2021-10-09
  • 2021-12-14
相关资源
相似解决方案