Skip to main content

INTRODUCTION TO MACHINE LEARNING

 MACHINE LEARNING

Machine learning is nothing but training the machine with data in order to predict the correct output and to give us better accuracy.

TYPES OF MACHINE LEARNING

  1. SUPERVISED MACHINE LEARNING
  2. UNSUPERVISED MACHINE LEARNING
  3. REINFORCEMENT LEARNING 

SUPERVISED MACHINE LEARNING

  1. In supervised machine learning, we have both X and Y labels.
  2. Here, X is an independent variable and Y is a dependent variable.
  3. Based on the features of X we are going to predict the output Y.

  • Here X features are( Outlook, Temp, Humidity, Windy) based on these factors we predict the output or we also call it as target variable Y which is (Play).
  •  X is independent.
  •  Y is dependent on X that means Y which is (Play) can only be predicted based on the X features which are ( Outlook,Temp, Humidity, Windy).
Considering X features we can say whether we can Play on those conditions or not.


TYPES OF SUPERVISED MACHINE LEARNING

Supervised machine learning is further divided into:

  1. CLASSIFICATION
  2. REGRESSION

CLASSIFICATION

  • In classification, the output will be the probability of occurrence.
  • Classification deals with discrete data.
  • In classification, the output will be in the form of (0 or 1),(spam or Not_spam),(cancer or Not_cancer)

  • Here admitted is the output variable which has the values 1 and 0 means based on the X parameters (GMAT, GPA,work_exp) we are predicting the output variable Y which is (admitted)
  • 1 means admitted
  • 0 means not admitted
  • In simple terms, the output will be in the form of categorical data
  • Some of the examples are
    • cancer prediction( cancer or not-cancer)
    • spam email prediction(spam or not-spam)
  • Here for each X feature, we have only two y values whether Yes or No, True or False, 0 or 1.

REGRESSION

  • Regression deals with continuous data.
  • For each value of X, we have the Y value changing.


  • Here X is SAT and Y is GPA, we can see how the Y value is changing for each X value we call this as continuos data
  • In regression the output values will not be the probability of occurrences like (0 or1, spam or not spam), it will be in the form of continuous data as you see in the above table

MACHINE LEARNING TREE





Comments

Popular posts from this blog

IMPLEMENTATION OF LINEAR REGRESSION IN PYTHON

Hello everyone, in this blog I will explain how to implement Linear Regression using python. This requires a pre-requisite which is Mathematical Implementation Of Linear Regression, which I have explained in one of my previous blogs, I have pasted the link below. Click here to know the mathematical implementation of Linear Regression Get to know the Mathematical implementation first, or else you might feel very difficult to understand this blog. So let's start, now I will show how to implement Linear Regression in python. NOTE:  Lines highlighted with Yellow color are actually code.    STEP 1: Import necessary libraries that are required for numerical operations, importing data frames and plotting the graph. import numpy as np import pandas as pd import matplotlib.pyplot as plt STEP 2: Read the data The data will be in the format of CSV, EXCEL there are still some, but I have mentioned only two . The data which I'm taking is tiny it has only two columns SAT and GPA , ...

LINEAR REGRESSION - MATHEMATICAL IMPLEMENTATION (SUPERVIZED MACHINE LEARNING)

 LINEAR REGRESSION LINEAR REGRESSION is a type of supervised machine learning which deals with continuous data. LINEAR REGRESSION comes under regression in supervised machine learning.   (don't know what is continuous data? refer to my previous blog or click the link given below). Click here to know what is continuous data From the above graph, we can see X is an independent variable and Y is a dependent variable, based on the features of X the Y gets plotted. Apart from X and Y we also have a Regression line, which is also known as the line of linear regression. This regression line shows the relationship between the Independent variable(x) and the dependent variable(Y). The formula to find the regression line is  y=mx+c   or    yhat=β0+β1*X Here, β0 =Intercept β1 =Coeeficient X= x values Formula to find out  β1 is: Formula to find  β0 is:   So for clear understanding let's take a graph Here, The orange dots are actual values. The gre...