Machine Learning

Why ML?

What kind of problems ML solve?

some typical examples of ML applications

Slightly complicated examples

Things/LIbraries required

Numpy

pandas

is called as spreadsheet of python. It is used to manipulate tabular data

Simple example of classification

A hobby botanist has collected some data of iris flowers. She has collected some parameters for sepal and petal of flowers (features). Into this observed data, botanists also puts known species names (target). Now question is , using this data can we build a ML modlel which can predict me species name if some new data is given?

what is the effectiveness of my learning algorithm

Convention for data naming... data is usually denoted with X, while labels are denoted by lowercase y. this is inspired from standard mathematic formula f(x) = y . X is capital because it a matrix! y is lower because it is simply a vector

Looking at data

Build our first model

Evaluating my model

Supervised learning

It is an algorithm which learns from known inputs and outputs and then predicts for new inputs!

There are two subcategories for this further

  1. classification: The goal is to predict class label
  2. regression: The goal is to predict a continious number

sample datasets

K-Neighbors classification

Analysing KNeighborsClassifiers

In general we would like to choose paramters of a model such that model is not too simple or is not too complex

breast cancer dataset