Feature sacling与Mean normalization

1.Rescaling

The simplest method is rescaling the range of features to scale the range in [0, 1] or [−1, 1]. Selecting the target range depends on the nature of the data. The general formula is given as:

这是最简单的一种处理方法,它使得所有特征的范围都在[0,1]或者[-1,1]。

x ′ = x − m i n ( x ) m a x ( x ) − m i n ( x ) x'=\frac{x-min(x)}{max(x)-min(x)} x=max(x)min(x)xmin(x)

其中: x x x是原始值, x ′ x' x为规则化后的值

2.Mean normalisatio
x ′ = x − m e a n ( x ) m a x ( x ) − m i n ( x ) x'=\frac{x-mean(x)}{max(x)-min(x)} x=max(x)min(x)xmean(x)

其中: x x x是原始值, x ′ x' x为规则化后的值

3.Standardization

这个方法是机器学习中使用得最广泛的方法,它将使得标准化后的特征值的平均值为0,标准差为1.

x ′ = x − m e a n ( x ) σ x'=\frac{x-mean(x)}{\sigma} x=σxmean(x)

其中: x x x是原始值, x ′ x' x为规则化后的值, σ \sigma σ为标准差

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值