Why do we need feature scaling in Machine Learning and how to do it using SciKit Learn?

When you’re working with a learning model, it is important to scale the features to a range which is centered around zero. This is done so that the variance of the features are in the same range. If a feature’s variance is orders of magnitude more than the variance of other features, that particular feature might dominate other features in the dataset, which is not something we want happening in our model. Read more...

How to split your dataset to train and test datasets using SciKit Learn

When you’re working on a model and want to train it, you obviously have a dataset. But after training, we have to test the model on some test dataset. For this, you’ll a dataset which is different from the training set you used earlier. Read more...

Handle missing data in your training dataset with SciKit Imputer

 

Most often than not, you’ll encounter a dataset  in your data science projects where you’ll have missing data in at least one column. In some cases, you can just ignore that row by taking it out of the dataset. But that’ll not be the case always. Read more...

Label Encoder vs. One Hot Encoder in Machine Learning

MachineLearning

If you’re new to Machine Learning, you might get confused between these two – Label Encoder and One Hot Encoder. These two encoders are parts of the SciKit Learn library in Python, and they are used to convert categorical data, or text data, into numbers, which our predictive models can better understand.  Read more...

Hide properties of Mongoose objects in Node.JS JSON responses

Many a times, we’ll encounter a situation where we’ll have to hide certain properties of Mongoose objects, especially when we’re sending those objects in responses. For example, suppose you have an API endpoint like so: /user/:id. You will, obviously, send a user object as a response to this request. Read more...

Auto-discovery of packages in Laravel 5.5

Laravel 5.5 is right around the corner, and there are quite a few amazing features coming with this new version. Taylor Otwell has been writing about the framework’s new features frequently. The latest feature that he has announced is the auto-discovery of packages, their service providers, and facade aliases. Read more...

Laravel’s new migrate:fresh command

One of the features in Laravel, because of which I fell in love with the framework initially, is migrations. I don’t remember how most other frameworks handle migrations, but Laravel’s migration engine is super awesome. If you work with Laravel regularly, you’d have no doubt used a few migration commands, maybe for creating a migration file, running migrations, rolling back migrations, etc. Read more...