Coder Social home page Coder Social logo

rafeyiqbalrahman / data-scaling-techniques Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 11 KB

This repository demonstrates the scaling of the data using Scikit-learn's StandardScaler, MinMaxScaler, and RobustScaler.

License: MIT License

Python 100.00%
datascale scikit-learn scikitlearn-machine-learning scikit-learn-python sklearn sklearn-library standardscaler minmaxscaling robust-scaling

data-scaling-techniques's Introduction

Data Scaling Techniques

As the name suggests, data scaling refers to the phenomenon of scaling the data. Scaling here refers to limiting the values constituting the data in a specific range, depending upon the nature of the scaling technique used. Data scaling is usually necessary for the machine learning model to make better, accurate predictions. Data scaling works effectively when the data comprises values that hold different units (like, distance, time difference, amount in a particular currency, etc.). There are three (03) data scaling techniques I know so far. These techniques are implemented through the popular Scikit-learn machine learning library and are used to scale numeric data.

StandardScaler

StandardScaler works by removing the mean of the data and scales the data to unit variance (variance = 1). Data with unit variance means that the values constituing the dataset are highly unique (high cardinality). View the API reference guide here: https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.StandardScaler.html

MinMaxScaler

MinMaxScaler simply scales the data values between the range of 0-1. View the API reference guide here: https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.MinMaxScaler.html

#RobustScaler The term 'Robust' is used to define the property of RobustScaler being 'robust to outliers', i.e., it nulls the effect of outliers (numerically-distant data that doesn't seem fit in the dataset) since outliers, in most cases, result in inaccurate predictions. View the API reference guide here: https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.RobustScaler.html

data-scaling-techniques's People

Contributors

rafeyiqbalrahman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.