Month: November 2018

My Tech World

DAY 21-100 DAYS MLCODE: Random Forest

In previous blog, we completed the the decision tree and in the blog, we’ll start working with Random Forest algorithm in this blog. As per Wikipedia: Random forests or random decision forests are an ensemble learning method for classification, regression and other tasks, that operate by constructing a multitude of decision trees at training time and outputting the class that is the mode of the classes (classification)…
Read more


November 30, 2018 0

DAY 20-100 DAYS MLCODE: Decision Tree part 4

This is a continuation of our previous blog about training decision trees on Moon dataset. In this blog, we’ll try to train a model on a smaller subset of the training dataset. For example, we created the 100000 training instance of the moon data set. Now in this blog, we are going to train 100…
Read more


November 29, 2018 0

DAY 19-100 DAYS MLCODE: DECISION TREES classifier

In the previous blog, we completed the decision trees. In this blog, we will create a Decision tree classifier using the Decision tree and will use Grid search to find the best value for parameters. Lets create the Moon Dataset using the make_moons class of SciKit Learn Once data is loaded , let’s split the…
Read more


November 29, 2018 0

DAY 18-100 DAYS MLCODE: DECISION TREES – Part 3

In the previous blog, we learned about the Decision trees capability to perform the classification task, in today’s blog we are going to perform a simple regression task. A decision tree is also capable of performing the regression task. SciKit-Learn DecisionTreeRegressor class help us to perform the regression task.  we are using the same data set…
Read more


November 27, 2018 0

DAY 17-100 DAYS MLCODE: DECISION TREES – Part 2

This blog is continuation of the previous blog about decision trees. We are going to study more about decision trees. In the last blog, we discussed the tree generated by our model ( shown below):   In the above image, Sample attribute of node means a total number of training instances [len(X)= 178] on which the algorithm…
Read more


November 27, 2018 0

DAY 16-100 DAYS MLCODE: Decision Trees

In the last three blogs, we had discussed about the SVM. In this blog, we shall walkthrough a simple example of Decision Trees algorithm. Like SVM, Decision Trees are powerful algorithm of machine learning and can perform regression as well as classification task. You can perform the classification or regression on complex data using Decision…
Read more


November 25, 2018 0

DAY 15-100 DAYS MLCODE: SVM Regression

This blog is a continuation of our previous blog about SVM, in today’s blog, we are going to focus on SVM Regression. We are going to apply the regression on the SVM model . We’ll use the previous blog example and apply the regression on the previously created example. SVM Regression As per wiki SVM Regression : In machine learning, support-vector machines (SVMs, also support-vector…
Read more


November 24, 2018 0

DAY 14-100 DAYS MLCODE: SVM

This blog is continuation of our previous blog about SVM.  In today’s blog, we are going to focus other classes of the SciKit Learn to implement the SVM for linear and none linear classification. In last blog we used the LinearSVC class of SciKit-Learn to implement the the SVM .  Let’s start creating the linear classification using the…
Read more


November 23, 2018 0

Day 13-100 Days MLCode: Support Vectro Machine

In the last blog we had discussed the Logistic Regression, today, we are going to discuss about Support Vector Machine.  Support Vector Machine is a very famous and powerful machine learning model and used for linear and nonlinear regression, classification and decision outlier detector. As per wiki : support vector machines (SVMs, also support vector networks) are supervised learning models…
Read more


November 22, 2018 0

Day 12-100 Days MLCode: Logistic Regression

One of the famous tasks of supervised learning is classification and Logistic regression is one of the most famous models for classification problems.  Logistic Regression is used when the dependent variable(target) is categorical. Logistic regression, like Linear regression, has the cost function and we have to estimates the weight and biases using gradient descent. However, the…
Read more


November 21, 2018 0