Posts

Showing posts from December, 2021

How and why to Standardize your data: A python tutorial

Image
  How and why to Standardize your data: A python tutorial In this post I explain why and how to apply Standardization using scikit-learn in Python Serafeim Loukas May 26, 2020 · 4 min read Figure taken from: https://scikit-learn.org/stable/auto_examples/preprocessing/plot_all_scaling.html . Left subplot: the unscaled data. Right subplot: the transformed data. Hi there. This is my first Medium post. I am an electrical & computer engineer currently finishing my PhD studies in the biomedical engineering and computational neuroscience field. I have been working on machine learning problems for the past 4 years. A very common question that I see all around the web is how to standardize and why to do so, the data before fitting a machine learning model. How does scikit-learn’s StandardScaler work ? The first question that comes to one’s mind is: Why to standardize in the first place? Why to standardize before fitting a ML model? Well, the idea is simp l e . Variables that are mea

Everything you need to know about Min-Max normalization: A Python tutorial

Image
  Everything you need to know about Min-Max normalization: A Python tutorial In this post I explain what Min-Max scaling is, when to use it and how to implement it in Python using scikit-learn but also manually from scratch . Serafeim Loukas May 28, 2020 · 5 min read Figure created by the author in Python. Introduction This is my second post about the normalization techniques that are often used prior to machine learning (ML) model fitting. In my first post , I covered the Standardization technique using scikit-learn’s StandardScaler function. If you are not familiar with the standardization technique, you can learn the essentials in only 3 min by clicking here . In the present post, I will explain the second most famous normalization method i.e. Min-Max Scaling using scikit-learn (function name: MinMaxScaler ). Core of the method Another way to normalize the input features/variables (apart from the standardization that scales the features so that they have μ=0 and σ=1 ) is t

Everything you need to know about Min-Max normalization: A Python tutorial

Image
  Sign in Get started Follow 606K Followers · Editors' Picks Features Deep Dives Grow Contribute About You have 2 free member-only stories left this month. Sign up for Medium and get an extra one Everything you need to know about Min-Max normalization: A Python tutorial In this post I explain what Min-Max scaling is, when to use it and how to implement it in Python using scikit-learn but also manually from scratch . Serafeim Loukas May 28, 2020 · 5 min read Figure created by the author in Python. Introduction This is my second post about the normalization techniques that are often used prior to machine learning (ML) model fitting. In my first post , I covered the Standardization technique using scikit-learn’s StandardScaler function. If you are not familiar with the standardization technique, you can learn the essentials in only 3 min by clicking here . In the present post, I will explain the second most famous normalization method i.e. Min-Max Scaling using scikit-learn (f