What do the parameters in the Random Forest algorithm really mean?

About this article

In this article, we will try to get a deeper understanding of what each of the parameters does in the Random Forest algorithm. This is not an explanation of how the algorithm works. ( You might want to start with a simple explanation of how the algorithm works, found here — A pictorial guide to understanding Random Forest Algorithm.)


The packages we will be looking at are


( for the Random Forest Classifier algorithm found in the sklearn library )


(for the Random Forest regressor algorithm)

Random Forest Classifier — parameters

  1. n_estimators ( default = 100 )

Since the RandomForest algorithm is an…

The institutions, people and the central banks behind the sudden demand in Bitcoins — a study on recent events leading up to the rally.

Image for post
Image for post
Image edited by Author. Original Image source cnbc.com

This is Jamie Dimon, the chairman, and CEO of JP Morgan Chase. Back in 2017 during the last Bitcoin bull run, he was considered as one of the most influential critics against the use of Bitcoin as a digital currency.

He is famously known to have said that Bitcoins were “a fraud”.[1] ( at the time Bitcoins were trading at around $4200. 3 months later, Bitcoins hit an all-time high of $19700, and then, as we all know, the Bitcoin crash followed soon after.

Months later, however, Jamie backtracked from his previous stand and is often quoted to have said…

An intuitive understanding of the torchvision library — basics to advanced ( Part 1/3 )

What is torchvision?

Torchvision is a library for Computer Vision that goes hand in hand with PyTorch. It has utilities for efficient Image and Video transformations, some commonly used pre-trained models, and some datasets ( torchvision does not come bundled with PyTorch, you will have to install it separately. )

About this article

This series of articles provides you with an understanding of what comprises the torchvision library — and also will look into how to implement these functionalities.

We will be using version 0.8.2 of torchvision

Part 1 gives you an over view of the features of torchvision

In Part 2 we will cover the…

The new AI features in Photoshop 2021 inspired by the latest researches in AI

About this article

Adobe Photoshop 2021 claims to be the ‘most advanced AI tool available for creatives’ so far. They have successfully adopted the latest research in AI and have added as tools in its latest version — Adobe Photoshop 2021.

Here we will take a look into the top 5 functionalities in the app that are facilitated by the advancements in AI and also have a look at the underlying AI research papers which we saw last year.

  1. Neural Filters
  2. Select Item
  3. Sky Replacement
  4. Content aware fill
  5. Discover panel and Quick actions

Neural Filters

With a bunch of filters added in the beta stage…

An intuitive understanding of the torchvision library — with 14 visual examples of transforms ( Part 2/3 )

For Part 1 ( introduction to the modules in torchvision ) , please visit the link below.

In this article

We will experiment with

  • some basic image transforms while loading a data-set into your PyTorch scripts

1. transforms

transforms are simple image transformation functions that can be carried out in a sequence soon after the dataset ( images) is loaded . These are the broad steps for performing image transformation using torchvision

  1. Define your custom transforms pipeline ( using torchvision.transforms.Compose )

( This just means , list down the different transformations to be done on your imageset )

2. Load your datasets and pass…

Pickling in machine learning — why and how to use it

Image for post
Image for post
Original Image Source (unsplash.com) Edited by Author

What is pickling?

The jargonized version“Pickling is the process of serialization and de-serialization of an object.”

The simplified versionLet’s just put it this way — pickling is a way of saving a python object on to your hard disc so that you can ‘unpickle’ it and use the object in another program / or transfer to another machine.

Now lets break down the jargons — in simple words ,

  • serialization means — writing from the memory to hard disc.
  • deserialization means — reading a file from hard disc on to your memory ( more sepcifically — accessible by the…

Image for post
Image for post

Basic Programming Constructs — Level 3(loops)

Basic Programming Constructs — Level 2 (conditional statements)

Note : Click here for Part 1 and Part 2

In this piece we will cover the simplest programming construct; a conditional statement and also get introduced to some core concepts in Lua.

  1. if-else condition

2. if -else if-else conditional blocks


The basic syntax for if-else and if-else conditional blocks are as shown below

Image for post
Image for post
if-else conditional construct

Basic programming constructs — printing output, variables and comments

In case you want to get started from Part 1 — here is the link .

Instead of the normal A-Z mode of learning a programming language , we will try it a little differently. Let’s just assume that you are trying to make a lateral shift from python to lua — Lets try to relate to another scripting language and make it easier and faster to learn Lua .

Why ? Because if you know Python, Lua is a breeze . Lets just do it.

But before the comparison with Python , lets do some basics right.

1. Installation ( Ah not now please ! )

We will…

Learn ‘lua’ in an easy intuitive way ( Part 1 — Platforms )

What is the series about ?

This is Part 1 of the series where we try to learn lua in the most intuitive way. All the articles in this series is a short read ( 3 minutes ), so we will have many follow up parts to this . Stay along .. we have an interesting journey ahead !

Image for post
Image for post
Lua is fun

What is Lua ?

Lua is a lightweight embedded scripting language — which can be run on your IoT devices, used to write games for mobile and even support scripting on the applications running on your PC.

Is Lua used in real life ??



Making AI available to everyone. One commit at a time. A.I. M.L| | Quantitative programming | IoT | Python | Arduino | Comp Vision | contact@pythoslabs.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store