Note 1 Flashcards

1
Q

What is machine Learning

A

Machine Learning is about Predicting Results based on Incoming Data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Steps in Full Machine Learning Project

A
  1. Data Collection
  2. Data Modeling
    2.1 Problem definition
    2.2 Data
    2.3 Evaluation
    2.4 Features
    2.5 Modelling
    2.6 Experiments
  3. Deployment
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Types of data in machine learning

A

Supervised
Unsupervised
Reinforcement Learning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Supervised Data

A

Data we receive already have categories (Rows and columns) and text data

Example - Function is right or wrong

Classification - 2 categories

Regression - Multiple Categories

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Unsupervised Data

A

Data which Doesn’t have labels

Clusters and association Rule Learning

Clusters is nothing but grouping Operations

Association Rule is like what customer will buy in the Future

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Reinforcement Learning

A

Real time Learning

Teaching Machine through trial and error
(Through reward and punishment)

Different categories in Reinforcement Learning

  • Neural Networks
  • Decision Trees
  • SVM
  • KNN
    Learn from the data they receive and Predict
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Classification

A

is there apple or orange

it draw lines to decide this is apple and this is orange

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Regression

A

Predict stock Price

Hiring engineer based on Inputs (Year of exp, Age, what type of computer they have) - Labels

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Association Rule Learning

A

Where we associate Different things to predict what customer paraphs might buy in the feature.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How Machine Learning algorithm works

A

Input (All Ingredients)

Output (Ideal - Assuming Output)

It look at the input and look at the output and it try to figure out the set of instructions in-between the two
you may have 100 or 1000 of attempts

It may take 1000’s of times to find right instructions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Data Analysis

A

Looking at set of data and understanding it by comparing different examples, Different Features, Visualizations like graphs comparing them

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Data Science

A

is experimenting with different data or set of data finding actionable insights within it.

or

Building a Machine learning model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Steps in Machine Learning Framework

A

1)What Problem we are trying to solve?
(It is supervised or unsupervised problem)

2)Data
(Structured Data - Row and columns (Excel)
(Unstructured Data - Image / Audios

3)Evaluation
(What Defines success for us)
(Something to Aim)
Example :
House data — Machine Learning model — House price = Predicted Price 4,97,000 and Actual Price 5,00,000 } How accurate 90 - 95 % Accurate

4)Features
(what do we already know about the data)

Example :
Heart Disease — (Features) Body weight, Blood Pressure, Chest pain

5)Modeling :
(Based on our problem and data , what model should we use?)

Example :
Problem 1 — Model 1
Problem 2 — Model 2

Some model works better
Right model for the right kind of problem

6)Experimentation :
(How could we improve / what can we try next?)

Example :
Attempt 1 — Fail
Attempt 2 — Fail
Attempt 3 — Partial Success
Attempt 4 — complete Success

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Detailed Explanation on Problem Identification (Step 1)

A

Page No : 13

Problem Identification (Definition)
Main types of Machine Learning
- Supervised Learning
- Reinforcement Learning
- unsupervised Learning
- Transfer Learning

Supervisad Learning
- You have Data and Labels
- Machine Lerning: Algo tries to use the Date to predict the label If it guesses, wrong the algo Correct itself and tries again. This active Correction, is called Supervised

Data
(Collectim of all Records)

Label
(output Results)
|
|
output
(instructions)

Supervised Learning Repeat the process over and over time to get better
- Classification
- Regression

Classification:
- Binary Classification - two option
- Multiclass Classification - More than two option

Regression
- Trying to predict the No.
- Refer to us Continuous No.
- No. may go up or Down
Example:
- No. of Room
- how many people will buy

Example:
How Many people will by this app
How much will this house sell for?

Unsupervised Learning:
-Purchase history

ID Purchase 1 Purchase 2

1 Sunglasses Singlet (Summer)
2 Jacket Show boots (Winter)
3 Sun Screen Beach towel (Summer)

Sent Promotion for Next Summer

who is intresting in Purchasing for Summer

Do Classificationnalysis

  • I don’t have output but I have Input

Transfer Leaning:
- I what dog Bread appear in the photo (Predict) Cor Model Machine learning algo use its foundation, Platform and apply it to the day photo
- I think my Problem may similar to Something else. Leverage what existing Machine Learning Model has learned.

Reinforcement Leaning:
- I having a Computer program, platform Some action within Define Space and Rewarding it whom it doing well and Punishing it when doing wrong
+ Example: Teaching Machine Learning Algo playing chess
win +1
Lose -1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is Supervised Learning

A

Page No : 13

Supervisad Learning
- You have Data and Labels
- Machine Lerning: Algo tries to use the Date to predict the label If it guesses, wrong the algo Correct itself and tries again. This active Correction, is called Supervised

Data
(Collectim of all Records)

Label
(output Results)
|
|
output
(instructions)

Supervised Learning Repeat the process over and over time to get better
- Classification
- Regression

Classification:
- Binary Classification - two option
- Multiclass Classification - More than two option

Regression
- Trying to predict the No.
- Refer to us Continuous No.
- No. may go up or Down
Example:
- No. of Room
- how many people will buy

Example:
How Many people will by this app
How much will this house sell for?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is Unsupervised Learning

A

Page No : 14

Unsupervised Learning:
-Purchase history

ID Purchase 1 Purchase 2

1 Sunglasses Singlet (Summer)
2 Jacket Show boots (Winter)
3 Sun Screen Beach towel (Summer)

Sent Promotion for Next Summer

who is intresting in Purchasing for Summer

Do Classificationnalysis

  • I don’t have output but I have Input
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is Transfer Learning

A

Page No : 14

Transfer Leaning:
- I what dog Bread appear in the photo (Predict) Cor Model Machine learning algo use its foundation, Platform and apply it to the day photo
- I think my Problem may similar to Something else. Leverage what existing Machine Learning Model has learned.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is Reinforcement Learning

A

Page No : 15

Reinforcement Leaning:
- I having a Computer program, platform Some action within Define Space and Rewarding it whom it doing well and Punishing it when doing wrong
+ Example: Teaching Machine Learning Algo playing chess
win +1
Lose -1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Detailed Explanation on Data (Step 2)

A

Page No : 15

Data

what data do we hove
Different types of, Data
- structured
- unstructured

  • Structured
    it will look Like Excel file (Rows & Columns), Medical Records, Customer purchase Transactions is called Structured Data
  • unstructured Data
    (like images, Natural language text Phone calls, Videos, audio files) we turn them into No and Make them structured.
  • Static Data
    This Data won’t Choose over time (.csv) (or) Table
    The More Dato better Hi Resolt is
  • Streaming Data
    Data which is Constantly changing overtime.
    Example: Stock price change based on news headlines

Note: Most of the work in practice will start on Static Data and Machine learning (Data Analysis) Effects Show some insights you Move towords Streaming Data

Workflow

Static Data (csv) — Id (Jupyter) — Exploring Data (Data Analysis) (Pandas) — Visualization (MatPlotlib) — Machine Learning Model on the Data (Scikit learn) — Result

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Detailed Explanation on Evaluation (Step 3)

A

Page No : 16

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Detailed Explanation on Features in Data (Step 4)

A

Page No : 18

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Detailed Explanation on Modeling (Part 1) - Splitting Data (Step 5)

A

Page No : 19

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Detailed Explanation on Modeling (Part 2) - Choosing a Model (Step 5)

A

Page No : 21

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Detailed Explanation on Modeling (Part 3) - Tuning (Step 5)

A

Page No : 23

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Detailed Explanation on Modeling (Part 4) - Comparison (Step 5)

A

Page No : 24

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Overfitting and Underfitting and Balanced

A

Page No : 25

27
Q

Several reason why underfitting and overfitting can happen

A

Page No : 26

28
Q

How to comparing models

A

Page No : 28

29
Q

Detailed Explanation on Experimentation (Step 6)

A

Page No : 29

30
Q

Tools we use

A

Anaconda — Pandas, Matplotlib, Numpy, tensorflow, pytorch, XGboost, Scikit learn, Catboost

31
Q

Setup Needed (Like Code Editor, IDE’s, Notebook)

A

Page No : 31

32
Q

How to capture information on python code

A

Input (“What is your name”)

33
Q

Python Program to Print

A

Print (“Gowtham”)

34
Q

Python : How to store input

A

Name = input (“What is your name?”)
Print (Name)
or
Print (“hello “ + Name)

Note : + is an combining operation

35
Q

4 key things you should know while learning a language

A

Yo Term
Data Types
Action
Best Practices

36
Q

what is Data Types?

A

Page No : 34

37
Q

Power Symbol
Modular Symbol
Denomination

38
Q

Operational Symbol

39
Q

Action (Functions) terms in python

A

Print - Printing result
type - Showing Class (float, int,….)
Math operation

40
Q

ABS function (Action)
Round Function

A

Page No : 35 and 36

41
Q

Operation Procedure of Math

A

Page No : 36

42
Q

Yo terms

A

Variables
Page No : 37

43
Q

keywords

A

list
if
for
while

44
Q

Dunder

A

__
Variable should not be created with Dunder

45
Q

Expression Vs Statement

A

Page No : 37

46
Q

Augmented Assignment Operator

A

Page No : 38

47
Q

Strings
Long String

A

Page No : 38

48
Q

String Concatenation
type Conversion
Escape sequence
Formatted String

A

Page No : 39 & 40

49
Q

Formatted string

A

Page no : 40

50
Q

String index or slicing

A

Page no : 41

51
Q

String index (step over)

A

Page no : 42

52
Q

Reverse slicing

A

Page no : 41

53
Q

What is immutability in slicing

A

Page no : 41

54
Q

Built in function

A

Page no : 41

55
Q

What is len and starting no. in len

A

Page no : 42

56
Q

What is built in function and what is method

A

Words with () are build in function
Words starting with “.” are method

57
Q

How to use uppercase in python

A

.upper()
Page no : 42

58
Q

Things we do with string

A

String can’t be changed but can be deleted or overwrite or create new

59
Q

What is boolian

A

True or false
Page no : 42

60
Q

What is type conversion

A

Page no : 43

61
Q

How to comment on python

A

single line comment

Page no : 43

62
Q

Basic password checker exercise

A

Page no : 43

63
Q

How to get input in python

A

Page no : 43