| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
- neural network
- Unsupervised Learning
- 프롬프트 엔지니어링
- nlp
- AI
- supervised ml
- feature engineering
- Supervised Learning
- 머신러닝
- Machine Learning
- 딥러닝
- ChatGPT
- 챗지피티
- 인공지능
- learning algorithms
- Regression
- 인공신경망
- bingai
- llama
- LLM
- prompt
- coursera
- Scikitlearn
- Andrew Ng
- ML
- feature scaling
- Deep Learning
- AI 트렌드
- 언어모델
- GPT
- Today
- Total
My Progress
[Supervised ML] Feature scaling - 5 본문
1. Intuition
House example:

Lets say we are predicting the price of a house based on its size and number of bed rooms. Number for size of a house is relatively larger than the number of bed rooms. This large difference between numbers will make it hard to accurately predict the price.
How is this related to gradient descent?

Since the number for size is large, it takes smaller w value to make a change.
Meanwhile, it takes larger w value to make a change for the number of bedrooms due to its small number.

If you were to run gradient descent, it will bounce back and force, finding hard to find the minimum cost.
How do you solve this problem?
By tranforming and rescaling the data
2. Rescaling data
2.1 Feature Scaling

We can rescale the problem by dividing the number of its maximum range number.
2.2 Mean normalization

Mean normalization = x1 - mu1(average) / max - min
Through mean normalizaton, we can make data to be centered at 0.
2.3 Z - score normalization

We can rescale the data by using z - score or standard deviation of the data.
ex)

With the large data, it will take longer time for gradient descent.
'AI > ML Specialization' 카테고리의 다른 글
| [Supervised ML] Feature Engineering - 7 (0) | 2023.07.28 |
|---|---|
| [Supervised ML] Gradient descent / Learning Rate - 6 (0) | 2023.07.28 |
| [Supervised ML] Multiple linear regression - 4 (0) | 2023.07.28 |
| [Supervised ML] Gradient Descent - 3 (0) | 2023.07.27 |
| [Supervised ML] Regression/ Cost function - 2 (0) | 2023.07.26 |