100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Samenvatting midterm Toegepaste Machine Learning

Rating
-
Sold
-
Pages
23
Uploaded on
03-03-2025
Written in
2023/2024

Uitgebreide samenvatting met de stof voor de midterm van Toegepaste machine learning. Ideaal om te gebruiken voor het maken van je spiekbrief.

Institution
Module










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Module

Document information

Uploaded on
March 3, 2025
Number of pages
23
Written in
2023/2024
Type
Summary

Subjects

Content preview

Toegepaste machine learning
Week 1

What is machine learning?
machine learning algorithms build on a model based on [patterns in] sample data, known as
training data, in order to make predictions or decisions on new unseen data, without being
explicitly programmed to do so
○​ leren doe je van samples
○​ op zoek naar patronen


Data Science/Machine learning “steps”
1.​ Interacting with the outside world
●​ Reading and writing a variety of file formats and databases
2.​ Preparation
●​ schoonmaken van data
●​ cleaning, munging, combining, normalizing, reshaping, slicing and
dicing, and transforming data for analysis
3.​ Transformation
●​ data transformeren, beter geschikt maken om een model te maken
●​ Applying mathematical and statistical operations to groups of data
sets to derive new data sets
4.​ Modeling and computation
●​ Connecting your data to statistical models; machine learning
algorithms, or other computational tools
5.​ Presentation
●​ informatie visualisatie
●​ creating interactive or static graphical visualizations or textual
summaries
●​ dit vak is in stap 4



ML and evaluation
●​ In machine learning we always evaluate models:
○​ evaluation → hoe goed doet iets het (opmeten)
○​ machine learning gaat alleen maar over opmeten
○​ classification → je deelt iemand in in een vast aantal groepjes
■​ vb. geslacht
■​ accuracy, precision, recall, F1
○​ regression → voorspellen numerieke waarde
■​ verklarende en voorspellende variabelen
●​ als y numeriek → regressie
■​ RMSE
○​ je wil een lijn waarbij de som van alle errors (in het kwadraat) zo klein
mogelijk is

, RMSE
●​ root mean squared error




●​ sqrt → r
●​ N → aantal waarden in de lijst (noemer van de breuk)
●​ sum → (echte waarde - voorspelde waarde) in het kwadraat
●​ het is een loop door de lijsten A en B (true en predicted)


In reality in ML
●​ vectorized computations
○​ very fast
○​ super elegant




●​ np.array → object, komt met de gebruike operaties
●​ mean → zit hier al bij numpy hoef je niet meer zelf uit te rekenen



Baselines
●​ baseline → voorspeller die je leert met alleen maar globale informatie (geen
informatie over wat je moet voorspellen)
●​ A predictor “learned” using only global information
○​ that is, the distribution of the classes or values over the population
■​ vb. distributie van de klasse over de populatie
●​ predictor is only based on “prejudice”
●​ It does not use any feature of an instance​

Goede baseline voor geslacht informatiekunde student?
●​ je doet er een aantal eigenschappen van een persoon in en dat moet je het geslacht
kunnen voorspellen

, ●​ antwoord: man → majority class (modus/mode) → de waarde die het meest
voorkomt

Goede baseline voor jullie cijfer voor dit vak?
●​ gemiddelde van vorig jaar

Goede baseline voor fooi?
●​ the best guess, based on the tip column




●​ shape → aantal rijen en kolommen
●​ x → verklarende variabele
●​ y → voorspelde variabele
●​ regressie → minimaliseert RMSE
●​ regressie lijn → a * total_bill + b

Baseline




Evaluate




●​ er wordt een lijst met één waarde samengevoegd (kan eigenlijk niet)
●​ pandas probeert beide “lijsten” even groot te maken




●​ tips.tip.values is a long array of values
●​ tips.tip.mean() is just a number
●​ RMSE is comparing two equal array lengths

●​ rubberband nature of numpy and pandas → broadcasting
$11.11
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Also available in package deal

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.
FloorReeuwijk Universiteit van Amsterdam
Follow You need to be logged in order to follow users or courses
Sold
19
Member since
1 year
Number of followers
0
Documents
18
Last sold
1 month ago

3.5

2 reviews

5
0
4
1
3
1
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 exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions