# Machine Learning with Python

* Machine Learning is the Field of study that Gives Computers the ability to learn without being Explicitly Programmed.
    
* It is the subset of AI, which enables the Machine to Automatically Learn from data, improve performance from past experience and make predictions.
    
* A Computer Program is said to learn from **Experience E** with respect to some **Task T** and some **performance measure P**, if its performance on T, as measured by P, improves with **Experience E**.
    

### **Traditional Programing**

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1726071041921/74001c2e-1c65-4567-a030-3963ade8a6c7.png align="center")

### Let’s see Example

![](https://www.rd.com/wp-content/uploads/2020/02/traffic-light-colors-GettyImages-689407322-MLedit.jpg align="center")

Teach a computer to follow traffic Light Rules

1. If Red, stop car and turn off engine.
    
2. Else if yellow start your car Engine.
    
3. Else If green go!!
    

---

* Simple and a smaller number of rules
    
* Easy to program.
    

Why even bother with Machine Learning?

---

### Why we Use Machine Learning?

Teach a computer to Identify

* Running
    
* Jumping
    
* Walking
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1726072100787/46057f2e-84cb-4065-81b7-8a713fecdecc.png align="center")

In this Image Can you right the rules?

How many rules do need to be right?

### **Machine Learning Approach**

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1726075973378/253dd09d-8e96-445d-8db7-ebea8c35e787.png align="center")

### Types of Machine Learning

* Supervised Learning
    
* Unsupervised Learning
    

### Supervised Learning

A type of Machine Learning which requires a human Labelled Dataset, which provides the necessary supervision during Training a ML Algorithm.

### What is Training? What is dataset?

![](https://th.bing.com/th/id/R.320e1968afbd9e9a315d1b1dd7492622?rik=9VoLmpDWKGm2SQ&riu=http%3a%2f%2fpluspng.com%2fimg-png%2fpng-person-thinking-thinking-woman-png-1280.png&ehk=pa5f8HriRCJLUYpB5pFoeAvaF4b7fNrvrewE38%2bA5%2bQ%3d&risl=&pid=ImgRaw&r=0 align="center")
