分类变量与标准化

Python 中的机器学习预处理

James Chapman

Curriculum Manager, DataCamp

分类变量

    state country       type
295    az      us      light
296    tx      us  formation
297    nv      us   fireball
  • 独热编码:pd.get_dummies()
Python 中的机器学习预处理

标准化

  • .var()
  • np.log()
Python 中的机器学习预处理

让我们来练习!

Python 中的机器学习预处理

Preparing Video For Download...