Machine Learning

➦ But What is Machine Learning?

Machine learning is an Application of AI(Artificial Intelligence) which gives a system to learn. Machine Learning is mainly used for the development of computer programs to use data for learning. Nowadays many companies are using machine learning stuff to increase working speed and decrease human efforts. 

In small and simple example, machine learning can be described as, “One small baby and some different colors balls are kept in a room, the baby will pick up any ball. The baby picks up red color ball and it's mother says this is a red ball. This time the details of the ball like its color and shape get stored in that baby's brain that it is a red ball. After this incident, if the baby is asked for the second time to pick up red ball from random color balls, he will be able to pick it up easily because this time those details are already stored in that baby's brain. Using this details, baby will find the perfect one.”

➦ Machine Learning Model 

  •  P : Improve their performance 
  •  T : Executing some Task
  •  E : Over Time with experiences

➦ Uses of Machine Learning:
  • Object Recognition
  • Summarization
  • Prediction
  • Classification
  • Clustering
  • Recommender systems
  • and many more..

➦ Requirement 

  1. Python 
  2. Anaconda
  3. Jupyter 
  • Python libraries

  1. Numpy
  2. Scipy
  3. Matplotlib
  4. Scikit-learn
  5. Pandas
➦ Installation

Python         ⇒   Download
Anaconda    ⇒   Download

PIP Install commands

Jupyter               ⇒  pip install jupyter
Numpy              pip install NumPy
Scipy                ⇒  pip install scipy
Matplotlib        ⇒  pip install matplotlib
Scikit-learn      ⇒  pip install -U scikit-learn
Pandas              ⇒  pip install Pandas

*Use Documentation for Conda Install.

➦ check Python libraries Version

import sys
print('Python: {}'.format(sys.version))
import scipy
print('scipy: {}'.format(scipy.__version__))
import numpy
print('numpy: {}'.format(numpy.__version__))
import matplotlib
print('matplotlib: {}'.format(matplotlib.__version__))
import pandas
print('pandas: {}'.format(pandas.__version__))
import sklearn
print('sklearn: {}'.format(sklearn.__version__))

Copy code and paste in new  .py file 

➦ Basic Programs

Single-dimensional Array:

import numpy as np


[1 2 3]

Multi-dimensional Array:

import numpy as np


[[ 1 2 3]
[4 5 6]]

import numpy as np
import time
import sys
S= range(1000)
D= np.arange(1000)



➦ Machine Learning Algorithms

  • Supervised Learning algorithms

  1. Linear Regression
  2. Logistic Regression
  3. K-Nearest Neighbors
  4. Decision Tree
  5. Random Forest
  6. Support Vector Machine

  • Unsupervised Learning algorithms

  1. Dimension Reduction
  2. Density Estimation
  3. Market Basket Analysis
  4. Generative adversarial networks
  5. Clustering


What we covered:

basics of machine learning, what is machine learning, information of machine learning with

simple example, machine learning basic program, machine learning installation and requirements, machine learning in python, basic machine learning program in python, machine learning algorithms.

Technogyyan Machine Leaning

Post a Comment

Previous Post Next Post