Machine Learning Course - Lesson 5: Data Scaling - Normalization (JavaScript - No Libraries)

preview_player
Показать описание
Data scaling is a step we do to give features the same importance when doing classification. Now, maybe we don’t want exactly that and we’ll talk about adding weights to features later, but leveling the playing field is something you need to know how to do anyway. There are two techniques people commonly use for this. The one I’ll focus on is called normalization, where values are remapped to be between 0 and 1. The other one, standardization, is going to be your homework!

⭐️HOMEWORK⭐️
Try to implement standardization and apply it on our data. Share screenshots and your code on my Discord server:
The first to get it right will get a shoutout in a future video!

⭐️LINKS⭐️

📁 Data

💻 Code
✔️ Use P4 to follow along
✔️ P5 is the code after this lesson

⭐️TIMESTAMPS⭐️
00:00 Introduction
01:09 Implementing Normalization
04:55 Normalizing in Real-time
09:41 Understanding Outliers
11:49 Homework (Outliers)
Рекомендации по теме
Комментарии
Автор

Good time for some more coding with Radu, happy Friday! :)

Frankslaboratory
Автор

Wow, this is shorter. I'll watch it in a few hours but already leave my like <3

MrJackferson
Автор

Here is my attempt at standardization

utils.normalizePointsStd = (points) => {
console.log(points);
const dimensions = points[0].length;
for (let i = 0; i < points.length; i++) {
for (let j = 0; j < dimensions; j++) {
points[i][j] =
points[i][j] - utils.mean(...points.map((p) => p[j])) / => p[j]));
}
}
};

utils.mean = (...inputs) => {
let sum = 0;
for (let input of inputs) {
sum += input;
}
return sum / inputs.length;
};

utils.standardDeviation = (...inputs) => {
const m = utils.mean(...inputs);
let sum = 0;
for (let input of inputs) {
sum += (input - m) ** 2;
}
return Math.sqrt(sum / (inputs.length - 1));
};

fatal
Автор

Hey, Bro I like your videos, could you make a video about building voice control systems over the internet?

suleymanamangeldiyew
Автор

I am not getting any verification email when signed up to your website, I am practicing your campuzzle javascript game, I am stuck at a point, I am looking for the source code to compare . can you help my?

mdsalahuddin