2020-06-11
阅读量:
1293
标准化的方法
(一) 为什么要进行标准化
- 把特征的各个维度标准化到特定的区间
- 把有量纲表达式变为无量纲表达式
(二)标准化常用方法
1. standard scaler : 需满足数据为正太分布
(x- mean(x))/std(x)
2. MinmaxScaler : 将数据变换到要求的范围
(b-a) * (x-min)/(max-min) * a
3. RobustScaler: 在数据分布为偏态时使用
(x-中位数) / IQR
4. Binarizer
> threshold 1 ; < threshold 0
5. normalize
x/此列数据的范数






评论(0)


暂无数据
推荐帖子
2条评论
6条评论
7条评论