查看: 1127| 回复: 0
跳转到指定楼层
上一主题 下一主题
收起左侧

[找工就业] When does data need to be centralized and nomarlized?

全局:

2022(10-12月)-EE硕士+3个月-1年 | 内推|其他地区 分析|数据科学类全职@bytedance
When does data need to be centralized and nomarlized?


In regression problems and some machine learning algorithms, as well as in the process of training neural networks, it is often necessary to perform Zero-centered or Mean-subtraction processing and Standardization or Normalization on the raw data..--
• Purpose: Through centralization and normalization, we have the data with the mean of a standard normal distribution with mean value of 0 and standard deviation of 1 by centralization and normalization.
• The calculation process is represented by the following equation:x′=x−μσx^{'}=\frac{x-\mu }{\sigma }
• The following explains why it is necessary to use these data pre-processing steps.
In some practical problems, the sample data we get are multi-dimensional, i.e., a sample is characterized by multiple features. In some practical problems, the sample data we get are multi-dimensional, i.e., a sample is characterized by multiple features. For example, in the problem of predicting house price, the factors that affect house price yy are house area x1x_{1}, number of bedrooms x2x_{2}, etc. The sample data we get are some sample points like (x1,x2)(x_{1},x_{2}), where x1x_{1}, x2x_{2} are also known as features. Obviously, the scale and value of these features are different. When predicting the house price, if we use the original data values directly, they will have different degrees of influence on the house price, but through standardization, we can make different features have the same scale. In this way, when we using the gradient descent method to learn the parameters, different features will have the same degree of influence on the parameters.
In short, when the scale (units) of the features of the original data in different dimensions are inconsistent, a standardization step is needed to pre-process the data.
The following figure shows two-dimensional data as an example: the left figure represents the original data; the middle one is the centered data, where the data are moved around the origin:The right figure divides the zero-centralized data by the standard deviation to obtain as normalized data, and it can be seen that the scale is consistent on each dimension (the length of the red line segment indicates the scale).

..
In fact, centralization and normalization have different meanings in different problems.
•For example, in the process of training neural networks, the convergence of the weighting parameter can be accelerated by normalizing the data.
•In addition, for the principal component analysis (PCA) problem, pre-processing steps such as centralization and normalization of the data are also required.

本帖子中包含更多资源

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x

上一篇:Amazon 可以summer转spring coop吗
下一篇:Backend, iOS, Android, Fronted-2023ng
您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表