HPI DSML

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/138

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 12:51 PM on 7/29/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

139 Terms

1
New cards

Support for Item set I

Number of baskets that contain all items in I (often as a fraction of all baskets)

2
New cards

Frequent item set definition

Given a minimal support threshold s, an item-set I is a frequent item-set if and only if support(I) ≥ s

3
New cards

Downward Closure Property

All subsets of a frequent item-set must also be frequent.

<p>All subsets of a frequent item-set must also be frequent.</p>
4
New cards

Apriori Algorithm

knowt flashcard image
5
New cards

Given frequent itemset I and a non-empty subset A ⊆ I, we can create potential association rules of the form

A → I \ A

6
New cards

Association rule support

How often do the left and right side together show up in a basket

7
New cards

Association rule confidence

support of all items / support of left side

(support of only left side is always greater, so 0 <= conf <= 1)

<p>support of all items / support of left side </p><p>(support of only left side is always greater, so 0 &lt;= conf &lt;= 1) </p>
8
New cards

Find all association rules with support ≥ s and confidence ≥ c

Step 1: find all frequent item sets I

Step 2: for every subset A of I, generate a rule A → I \ A

Step 3: Output the rules above the confidence threshold

<p>Step 1: find all frequent item sets I</p><p>Step 2: for every subset A of I, generate a rule A → I \ A</p><p>Step 3: Output the rules above the confidence threshold</p>
9
New cards

Association rule interestingness

falls die interestingness vor dem betrag -1 war, so ist I eines der wenigen sets, welches j ausschließt → auch interessant. falls sie 1 war, so ist j selten und wir haben eine gute assoziation gefunden.

<p>falls die interestingness vor dem betrag -1 war, so ist I eines der wenigen sets, welches j ausschließt → auch interessant. falls sie 1 war, so ist j selten und wir haben eine gute assoziation gefunden.</p>
10
New cards

Other Kinds of Frequent Patterns

Sequential pattern mining: subsequences (with or without gaps), Graph Pattern Mining (count how often a little graph is contained as a subgraph for big G)

11
New cards

Euklidische Distanz für n Dimensionen

Assumption: Can use distances between vectors

<p>Assumption: Can use distances between vectors</p>
12
New cards

k-Means Clustering

knowt flashcard image
13
New cards

k-Means Clustering: Objective Function

knowt flashcard image
14
New cards

what if k means k too small

not all boundaries are recognized, different groups are thrown together

15
New cards

what if k means k is too big

groups get divided

16
New cards

Elbow Method

knowt flashcard image
17
New cards

k-means++

Randomly pick representatives preferring ones far away from already chosen representatives

18
New cards

k-means issues

different densities, overlapping clusters, non-globular shapes, differently sized clusters

19
New cards

Top-Down Clustering

start with one big cluster and partition it

<p>start with one big cluster and partition it</p>
20
New cards

Hierarchical Agglomerative Clustering

start with each point in its own cluster, then keep merging the two most similar clusters

<p>start with each point in its own cluster, then keep merging the two most similar clusters</p>
21
New cards

Hierarchical Agglomorative Clustering example → Single Link Clustering

uses the minimum distance between two clusters, fills in with min()

<p>uses the minimum distance between two clusters, fills in with min()</p>
22
New cards

Chaining Problem for Single Link Clustering

knowt flashcard image
23
New cards

Complete Link Clustering

Max Distance

<p>Max Distance</p>
24
New cards

Complete Link Clustering difference to Single link

fills in with max() except that point on which the clusters merged

25
New cards

Complete Link pros and cons

  • pro: less sensitive to noise than single link

  • con: may break up big clusters


26
New cards

other clustering distance measurements except single- and complete link

average distance, centroid distance, Similarity

27
New cards

Point similarity

knowt flashcard image
28
New cards

Different kinds of columns in tables

  • categorical columns (also zip code)

  • numerical columns


<ul><li><p>categorical columns (also zip code)</p></li><li><p>numerical columns</p></li></ul><p></p>
29
New cards

Data Wrangling

Making the raw data ready to use

30
New cards

Range

Max. and min values (and their difference)

31
New cards

Mean, Median, Mode

Mittelwert, Median, der häufigste

32
New cards

variance

der empirische durchschnittliche quadratische abstand

<p>der empirische durchschnittliche quadratische abstand</p>
33
New cards

population vs sample variance

knowt flashcard image
34
New cards

different shapes of distributions

knowt flashcard image
35
New cards

correllation (pearson)

knowt flashcard image
36
New cards

how can We Estimate Population-Level Statistics?

with sampling (bootstrap method)

37
New cards

bootstrap method

Look at distribution over 1000 mean values for resampled subpopulations. We allow duplicates in sampling (ohne zurücklegen). We sample a sample basically. The Bootstrap method allows us to simulate having many random samples instead of just one in a statistically valid way

<p>Look at distribution over 1000 mean values for resampled subpopulations. We allow duplicates in sampling (ohne zurücklegen). We sample a sample basically. The Bootstrap method allows us to simulate having many random samples instead of just one in a statistically valid way</p>
38
New cards

Feature Engineering

the step of going from an object to a feature vector

39
New cards

Feature Normalization

divide by max for example

<p>divide by max for example</p>
40
New cards

Feature Binning

knowt flashcard image
41
New cards

L1 normalization

scale a vector to be length 1 by dividing by its length

42
New cards

Categorical Variables

knowt flashcard image
43
New cards

Bag-of-Words Vectors

Can use 0 or 1 as booleans, or frequencies of words.

<p>Can use 0 or 1 as booleans, or frequencies of words. </p>
44
New cards

Bag of words application

find similarities between documents

45
New cards

A deep learning model is trained on huge amounts of data. As part of its training,

it automatically learns to create high-quality vector representations (embeddings)

46
New cards

Loss function: Global objective

What is the best vector of parameters θ to minimize the training loss

<p>What is the best vector of parameters θ to minimize the training loss</p>
47
New cards

Mean Squared Error (MSE)

knowt flashcard image
48
New cards

Multivariate Linear Regression

knowt flashcard image
49
New cards

polynomial curve fitting

regression aber die parameter sind nicht mehr nur m und n sondern mehr für higher degree polynomials davor

<p>regression aber die parameter sind nicht mehr nur m und n sondern mehr für higher degree polynomials davor</p>
50
New cards

underfitting and overfitting

against overfitting: test against a validation dataset

<p>against overfitting: test against a validation dataset</p>
51
New cards

Overfitting: Improving Generalization via Regularization

Effect of Regularization: Decrease weights so the model does not pay too much attention to any particular feature.

Note: Bias terms such as are normally excluded, as they are not multiplicative weights

<p>Effect of Regularization: Decrease weights so the model does not pay too much attention to any particular feature.</p><p>Note: Bias terms such as are normally excluded, as they are not multiplicative weights</p>
52
New cards

Overfitting: Big Data Solution

The overfitting automatically reduces if the size of the dataset increases (so the variance increases)

53
New cards

Bias vs variance

knowt flashcard image
54
New cards

K Nearest Neighbours Question

you have n labeled points, now you get one unlabeled point. decide on which class to include the point

55
New cards

KNN Simple Method: 1-Nearest Neighbour Classification

just give it the same class of the nearest neighbor. Problem: sometimes a bad estimate

56
New cards

Simple Supervised Algorithm: kNN (k Nearest Neighbours) Classification + problems

downsides: computing k neighbors can be slow if the training set is large

Distance may not correspond to sameness of class (some features may carry greater importance)

<p>downsides: computing k neighbors can be slow if the training set is large</p><p>Distance may not correspond to sameness of class (some features may carry greater importance)</p>
57
New cards

Decision Tree Learning Algorithm

knowt flashcard image
58
New cards

Decision Trees: Information Gain Criterium

knowt flashcard image
59
New cards

Decision Trees - Entropy Formula

summe über alle cases von p*log2(1/p)

<p>summe über alle cases von p*log2(1/p)</p>
60
New cards

Decision Trees: Gini Impurity Criterion

knowt flashcard image
61
New cards

Gini Impurity applied on decision trees, weighted average Gini


<p></p>
62
New cards

how to create a decision tree using gini impurity

knowt flashcard image
63
New cards

Technique to prevent overfitting on decision tree

Tree pruning

64
New cards

Random Forests

we ensure that we learn different trees using the bootstrap method

<p>we ensure that we learn different trees using the bootstrap method</p>
65
New cards

Representative training data

also: random order

<p>also: random order</p>
66
New cards

Hyperparameters

control the algorithm by determining what kind of model it will learn and how it will do the learning (such as the k in KNN), or the max. degree in polynomial curve fitting

67
New cards

Train-Test Split

knowt flashcard image
68
New cards

Data Leakage

The training set should not reveal unrealistically much about test set instances

69
New cards

Validation set vs test set

The validation set is used during the training phase of the model to provide an unbiased evaluation of the model's performance and to fine-tune the model's parameters. The test set, on the other hand, is used after the model has been fully trained to assess the model's performance on completely unseen data.

70
New cards

K-Fold Cross-Validation

knowt flashcard image
71
New cards

Leave-One-Out Cross-Validation

knowt flashcard image
72
New cards

3 validation options

● Fixed Validation Set

● K-Fold Cross-Validation

● Leave-One-Out Cross-Validation

73
New cards

correllation of bias variance and noise to problems about model and over/underfitting

knowt flashcard image
74
New cards

Workflow for reducing bias and variance

knowt flashcard image
75
New cards

Simplest Linear Classifier: Sign

knowt flashcard image
76
New cards

more input features - matrix multiplication

knowt flashcard image
77
New cards

2 input features geometric interpretation

knowt flashcard image
78
New cards

linear classifier geometric interpretation with 1, 2, 3 features

knowt flashcard image
79
New cards

Logistic Regression

now gives probability, not score. only difference is the use of sigmoid.

<p>now gives probability, not score. only difference is the use of sigmoid.</p>
80
New cards

convert probability to odds

knowt flashcard image
81
New cards

The sigmoid function goes back from log odds to

probabilities

<p>probabilities</p>
82
New cards

Mean Absolute Error

knowt flashcard image
83
New cards

Mean Squared Error

knowt flashcard image
84
New cards

MSE pro and con

pro: Easier to optimize, with less variance

con: but also very sensitive to outliers

85
New cards

RMSE

square root of MSE

86
New cards

Classification Accuracy:

What percentage was correct?

87
New cards

Error rate:

What percentage was Incorrect? (1 - accuracy)

88
New cards

Accuracy minimum for two solutions

50%, otherwise flip

89
New cards

Simple Classification Model: Majority Baseline


<p></p>
90
New cards

Confusion Matrix

knowt flashcard image
91
New cards

Precision vs Recall

3 out of the 5 animals I got are really dogs → 3/5 = 60% Precision

3 out of all 8 dogs were retrieved → 3/8 = 37.5% Recall

<p>3 out of the 5 animals I got are really dogs → 3/5 = 60% Precision</p><p>3 out of all 8 dogs were retrieved → 3/8 = 37.5% Recall</p>
92
New cards

Accuracy

(TP + TN) / total

93
New cards

Why is recall not enough?

We can get 100% recall be classifying everything as true

94
New cards

Why is precision not enough?

We can get close to 100% precision by only classifying things we are really sure about

95
New cards

Calculate Precision and recall from binary classification

knowt flashcard image
96
New cards

F1 score

knowt flashcard image
97
New cards

Multi-Class classification

not just yes/no, but more classes

<p>not just yes/no, but more classes</p>
98
New cards

Multi-Label Classification

knowt flashcard image
99
New cards

convert multi class to binary classification: One-vs.-Rest Approach

test membership to each single class, output the one with the highest acceptance score

<p>test membership to each single class, output the one with the highest acceptance score</p>
100
New cards

Convert Multi-Label to Binary Classification: Binary Relevance

Do one-vs. rest but choose all accepted classes