






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Well-posed Learning Problem A computer program is said to learn from (E)xperience E with respect to some (T)ask T and some (P)erformance measure P, if its performance on T, as measured by P, improves with experience E.
Machine Learning Field of study that gives computers the ability to learn without being explicitly programmed.
Machine Learning broad definition Field of study that gives computers the ability to learn without being explicitly programmed.
Abstract Essence of ML Representation + Evaluation + Optimisation
Machine Learning Learning from experience. It's also called supervised learning, were experience E is the supervision.
Pattern Recognition Finding patterns without experience. It's also called unsupervised learning.
Unsupervised Learing - We only have xi values, but no explicit target labels.
Unsupervised Learning Tasks - Outlier detection: Is this a 'normal' xi?
Classification ML task where T has a discrete set of outcomes. Often classification is binary. Examples:
Regression ML task where T has a real-valued outcome on some continuous sub-space Examples:
Labels Values that h aims to predict Example:
Training algorithm Given a model h with Solution Space S and a training set {X,Y}, a learning algorithm finds the solution that minimizes the cost function J(S)
Features/Attributes Measurable values of variables that correlate with the label y Examples:
Cost Function Squared error cost function. J(S)
Local minima The smallest value of the function. But it might not be the only one.
Curse of Dimensionality The curse of dimensionality refers to how certain learning algorithms may perform poorly in high-dimensional data.
First, it's very easy to overfit the the training data, since we can have a lot of assumptions that describe the target label (in case of supervised learning). In other words we can easily express the target using the dimensions that we have.
Second,we may need to increase the number of training data exponentially, to overcome the curse of dimensionality and that may not be feasible.
Third, in ML learning algorithms that depends on the distance, like k-means for clustering or k nearest neighbors, everything can become far from each others and it's difficult to interpret the distance between the data points.
EXTREME Dimensionality Case In an extreme, degenerate case, if D > n, each example can be uniquely described by a set of feature values.
Hidden layer(s) can - Have arbitrary number of nodes/units
Hidden Unit Activation Common functions for are unit step, sigmoid or logistic and tanh
RELU Rectified Linear Unit New trend, responsible for great deal of Deep Learning success. Advantages:
Output layer can be • Single node for binary classification
Network Topology Variations include:
Training a network Training a NN involves finding the parameters that minimize some error function
Choice of activation function depends on the output variables:
NN Error Functions Regression:
Gradient points in the direction of Steepest Ascent
How to train ANN An error function on the training set must be minimized. This is done by adjusting:
Eigenvalue Given an invertible matrix , an eigenvalue equation can be found in terms of a set of orthogonal vectors , and scalars such that: M
Derivative Measure of how fast function value changes withe the change of the argument. So if you have the function f(x)=x^2 you can compute its derivative and obtain a knowledge how fast f(x+t) changes with small enough t. This gives you knowledge about basic dynamics of the function
Gradient Gradient shows you in multidimensional functions the direction of the biggest value change (which is based on the directional derivatives). So given a function i.e. g(x,y) = -x+y^2 you know, that it is better to minimize the value of x, while strongly maximize the value of y. This is a base of gradient based methods, like steepest descent technique.
Regularization Regularization is a technique used in an attempt to solve the overfitting problem in statistical models.
Regularization - Maximum likelihood generalization error (i.e. cross-validation)
Deep Learning - Basically a Neural Network with Many hidden layers
What is Deep Learning? Definition:
Deep learning methods (Deep) Neural Networks
Convolutional Neural Networks Type of feed-forward artificial neural network in which the connectivity pattern between its neurons is inspired by the organization of the animal visual cortex, whose individual neurons are arranged in such a way that they respond to overlapping regions tiling the visual field.
How is deep neural network optimized? Optimized through gradient descent! (Forward-Backward algorithm)
Cost function - ℓ2 norm In order to avoid over-fitting, one common approach is to add a penalty term to the cost function. Common choices are the ℓ2-norm, given as:
Where C0 is the unregularized cost
Cost function - ℓ1 norm
Dropout A very different approach to avoiding over-fitting is to use an approach called dropout. Here, the output of a randomly chosen subset of the neurons are temporarily set to zero during the training of a given mini-batch. This makes it so that the neurons cannot overly adapt to the output from prior layers as these are not always present. It has enjoyed wide-spread adoption and massive empirical evidence as to its usefulness.
Cost function - Euclidean distance Distance measure between a pair of samples p and q in an n-dimensional feature space
Cost function - Manhattan or City block distance Calculate the distance between real vectors using the sum of their absolute difference. Also called City Block Distance
Basic Decision Tree Decision trees apply a series of linear decisions, that often depend on only a single variable at a time. Such trees partition the input space into cuboid regions, gradually refining the level of detail of a decision until a leaf node has been reached, which provides the final predicted label.
Tree components Root node, branch, node, leaf node.
Branching Factor Branching factor of node at level L is equal to the number of branches it has to nodes at level L + 1
CART Classification And Regression Trees
Six general questions to decide on decision tree algorithm:
Tree variaties Trees are called monothetic if one property/variable is considered at each node, polythetic otherwise
What trees are preferable? We prefer simple, compact trees, following Occam's Razor
How to make trees compact? To do so, we will seek to minimise impurity of data reaching descendent nodes
Occam's Razor All things being equal - the simplest explanation is the best
The Principle of Plurality Plurality should not be posited without necessity.
The Principle of Parsimony It is pointless to do with more what is done with less.
Misclassification Impurity Minimum probability that training example will be misclassified at node N
Bayes' Error - The Bayes Error rate is the theoretical lowest possible error rate for a given classifier and a given problem (dataset).
Missing Attributes It is common to have examples in your dataset with missing attributes/variables. One way of training a tree in the presence of missing attributes is removing all data points with any missing attributes. A better method is to only remove data points that miss a required attribute when considering the test for a given node for a given attribute. This is a great benefit of trees (and in general of combined models,)
ID3 Interactive dichotomizer version 3 Used for nominal, unordered, input data only. Every split has branching factor , where is the number of values a variable can take (e.g. bins of discretized variable) has as many levels as input variables
C4.5 - Successor of ID3.
Regression Trees - Trained in a very similar way
Model Combination View • Decision Trees combine a set of models (the nodes)
Random forests 1. Very good performance (speed, accuracy) when abundant data is available.
Measures of classification accuracy Classification Error Rate Cross Validation Recall, Precision, Confusion Matrix Receiver Operator Curves, two-alternative forced choice
Estimating hypothesis accuracy Sample Error vs. True Error Confidence Intervals
Sampling Theory Basics Binomial and Normal Distributions Mean and Variance
Comparing Hypotheses t-test Analysis of Variance (ANOVA) test
Simple data splits - Fixed train, development and test sets
Fixed train, development and test sets - Randomly split data into training, development, and test sets.
Bootstrapping Estimating the sampling distribution of an estimator by resampling with replacement from the original sample.
Cross-validation - Randomly split data into n folds and iteratively use one as test set
Evaluation procedure for single split or cross validation - For large datasets, a single split is usually sufficient.
Overfitting can occur when - Learning is performed for too long (e.g. in Neural Networks)
Confusion Matrix Easy to see if the system is commonly mislabelling one class as another
Classification measures - Error Rate Common performance measure for classification problems
F-measure Comparing different approaches is difficult when using multiple evaluation measures (e.g. Recall and Precision) F-measure combines recall and precision into a single measure
accuracy (TP + TN)/ (TP + TN + FP + FN)
accuracy may not be useful measure in cases where 1- There is a large class skew 2- There are differential misclassification costs - say, getting a positive wrong costs more than getting a negative wrong. 3- We are interested in a subset of high confidence predictions
TPR - True Positive Rate - Recall TP/actual Positive = TP/TP + FN
False Positive Rate FP/actual negative = FP/TN + FP