January 14, 2017 correlation

Correlation Plot

Let’s start visualizing correlation values in a plot.Open your RStudio and begin typing in !!! Let's import the library corrplot for correlation matrix visualization library(corrplot) Let's store the dataset mtcars into dataframe named DataFrame DataFrame <- mtcars Let's find the correlation matrix of this data set corrMatrix <- cor(DataFrame) Let'c visualize the correlation matrix.This plot […]

Read more
January 14, 2017 Pattern recognition

Finding patterns in Predictor Variables

Finding correlated variables is very important in order to remove multicollinearity in multiple regression models.Once you know the correlated variables you can choose few from them or may be just one from them.It depends on correlation value and other factors.Let’s begin to visualize the correlation in variables in a nice plot.Open your RStudio and begin […]

Read more
January 10, 2017 Accuracy metric for 5 folds

Decision Tree Classifier using python

Introduction Let’s learn from a precise demo on Fitting Decision Tree Classifier on Titanic Data Set for Machine Learning Course for Beginners: https://www.udemy.com/machine-learning-using-r/?couponCode=DISFOR123 Description: On April 15, 1912, the Titanic sank after colliding with an iceberg, killing 1502 out of 2224 passengers and crew. This tragedy has led to better safety regulations for ships. Machine […]

Read more
January 10, 2017 Accuracy metric plot for all five folds for naive bayes

Naive Bayes Classifier using python

Introduction Let’s learn from a precise demo on Fitting Naive Bayes Classifier on Titanic Data Set for Machine Learning Description: On April 15, 1912, the Titanic sank after colliding with an iceberg, killing 1502 out of 2224 passengers and crew. This tragedy has led to better safety regulations for ships. Machine learning Problem : To […]

Read more
January 10, 2017 accuracy metric across Crossvalidation folds

Nearest Neighbor Classifier using python

Introduction Let’s learn from a precise demo on Fitting Nearest Neighbor Classifier on Titanic Data Set for Machine Learning Description: On April 15, 1912, the Titanic sank after colliding with an iceberg, killing 1502 out of 2224 passengers and crew. This tragedy has led to better safety regulations for ships. Machine learning Problem : To […]

Read more
January 10, 2017 missing value barplot

Missing Value Analysis using Python

Missing Value analysis on Titanic data set for Machine Learning and Data Analytics Let's import the libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns %matplotlib inline Let's read the train and test data set .We are using the titanic data set train=pd.read_csv('C:\\Users\\Arpan\\Desktop\\titanic data set\\train.csv') test=pd.read_csv('C:\\Users\\Arpan\\Desktop\\titanic data […]

Read more
January 10, 2017 Text Classification

Natural Language Processing using python

Introduction Let’s learn from a precise demo on Natural Language Processing on Newsgroup data for Machine Learning What we will do : 1. Read the newsgroup data 2. Use TfIdfVectorizer for converting a collection of raw documents to a matrix of TF-IDF features. 3. Fit random forest and multinomial model (No crossvalidation is used here) […]

Read more
January 10, 2017 Support Vector Classifier

Support Vector Machine using python

Introduction Let’s learn from a precise demo on Fitting Support Vector Machine on Titanic Data Set for Machine Learning Description: On April 15, 1912, the Titanic sank after colliding with an iceberg, killing 1502 out of 2224 passengers and crew. This tragedy has led to better safety regulations for ships. Machine learning Problem : To […]

Read more
January 10, 2017 logistic regression using python

Logistic Regression using python

Let’s learn from a precise demo on Fitting Logistic Regression on Titanic Data Set for Machine Learning Description: On April 15, 1912, the Titanic sank after colliding with an iceberg, killing 1502 out of 2224 passengers and crew. This tragedy has led to better safety regulations for ships. Machine learning Problem : To predict which […]

Read more
January 9, 2017 accuracy metric

Random Forest using Python

Let’s learn from a precise demo on Fitting Random Forest on Titanic Data Set for Machine Learning Description: On April 15, 1912, the Titanic sank after colliding with an iceberg, killing 1502 out of 2224 passengers and crew. This tragedy has led to better safety regulations for ships. Machine learning Problem : To predict which […]

Read more