你如何去规范化? [英] How do you de-normalise?

查看:81
本文介绍了你如何去规范化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一旦您对数据进行了标准化处理,使值介于 0-1 之间,您如何对其进行去标准化处理,以便解释结果?

Once you do normalisation of your data so the values are between 0-1, how do you de-normalise it so you can interpret the result?

因此,当您规范化数据并将其提供给您的网络并获得规范化数据的输出时.如何逆归一化得到原始数据?

So when you normalise your data, and feed it to your network and get an output which is normalised data. How do you reverse normalisation to get the original data?

推荐答案

如果您有一些数据 d,您可以通过执行(类似的事情)将其标准化为 0-1

If you have some data d that you normalize to 0-1 by doing (something like)

min_d = np.min(d)
max_d = np.max(d)
normalized_d = (d - min_d) / (max_d - min_d)

您可以通过反转归一化来反归一化.在这种情况下

you can de-normalize this by inverting the normalization. In this case

denormalized_d = normalized_d * (max_d - min_d) + min_d

这篇关于你如何去规范化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆