Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Summary Machine Learning All lectures

Rating
5.0
(1)
Sold
-
Pages
46
Uploaded on
03-06-2020
Written in
2019/2020

All lectures (theory part) in one document. I've added many extra sources & links for better understanding of the topics discussed in the lectures. Check my other summaries for a full guide through all the practicals!

Institution
Course

Content preview

Machine learning lecture 1.

Part 1, week 1

Sources for tutorials and more explanations:

- Scikit-learn tutorial materials. May be hard to follow for the less advanced students
- The Coursera course on Machine Learning with Andrew Ng Matlab/Octave rather than Python


Part 2, week 1



Can we automate problem solving?

For example: flagging spam in your e-mail

Spam versus non-Spam

Page 3, gives 2 e-mail headers with different examples of titels:

- ‘your 5 million released, lottery winner’, ‘your overdue payment’ etc..
- ‘thesis evaluation’, ‘Link to the available data’ etc..
What makes you notice which ones are likely to be spam?



Machine learning is about learning by experience.

- Finding examples of spam and non-spam
- Come up with a learning algorithm
- A learning algorithm infers rules from examples
- These rules can be applied to new data (emails)


Types of learning problems:

- Regression
o Predict person’s age
- Binary classification: (Trying to predict a yes/no questions)
o Detect spam
- Multiclass classification: (one of finite options)
o Recognize type of birds
o Classify newspaper articles as… (categories)
- Multilabel classification: (a finite set of yes/no answers)
o Assign songs to one or more genres
- Ranking: (order object according to relevance)
o Google ranking search results
- Sequence labelling: (input: sequence of elements, output: corresponding sequence of labels)
o Translate between languages
o Summarize text

, - Autonomous behaviour (input: measurement from sensors, output: instructions for actuators
(steering, accelerate etc)




Part 3, week 1

How well is the algorithm learning?

Evaluation: how well is it thinking in its task

its good to keep in mind that for different classification/learning problems you have different evaluation
methods



Predicting age (binary classification if you assume 2 genders)



For predicting age:

- Mean absolute error – the average (absolute) difference between true value and predicted value




- Mean squared error – the average square of the difference between true value and predicted
value




- The error rate: proportion of mistakes

,Kinds of mistakes:

- False positive
o Flagged as spam, but not
- False negative
o Not flagged, but is spam
False positives are a bigger problem for flagging spam.



Precision and Recall

- Metrics which focus on one kind of mistake
- Precision: what fraction of flagged emails were real spam?
- Recall: what fraction of real spam were flagged?
For spam classification we aim for a high precision, because finding spam in your normal inbox (Recall) is
not as shitty as when a normal email has been marked as spam (Precision)




F = true positives + false positives

S = true positives + false negatives

, Precision:




Recall:



Example 1:

True Predicted
1 Spam Spam True positive
2 Spam Not spam False negative
3 Not spam Not spam True negative
4 Not spam Spam False positive


F-score:

- Harmonic mean between precision and recall, a kind of average
- Aka F-Measure






- Parameter ß quantifies how much more we care about recall than precision
- For example F0.5 is the metric to use if we care half as much about recall as about precision
If ß == 1 it is F- score




Multiclass classification:

Written for

Institution
Study
Course

Document information

Uploaded on
June 3, 2020
Number of pages
46
Written in
2019/2020
Type
SUMMARY

Subjects

$7.88
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Reviews from verified buyers

Showing all reviews
3 year ago

5.0

1 reviews

5
1
4
0
3
0
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
jeroenverboom Tilburg University
Follow You need to be logged in order to follow users or courses
Sold
82
Member since
7 year
Number of followers
60
Documents
8
Last sold
6 months ago

5.0

1 reviews

5
1
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions