Docsity

MACHINE LEARNING - APPUNTI, Appunti di Informatica

Toggle sidebar
bg1
Artificial neuron
An artificial neuron is the basic element of the neural network. It calculates a weighed sum of the inputs.
The output is one (we say that the neuron fires) if this sum is greater than a certain threshold, otherwise
zero. Obviously, it is a very simplified model of the biological neuron.
Neural network
A neural network is a computing model used in machine learning . It is based on a collection of computing
1
units or nodes called neurons. In this model, the output of each neuron is the input for the other
(connected) neurons. McCullough and Pitts showed that a neural network is computationally equivalent to
a Turing Machine. There are many kinds of neural networks: Hopfield nets, Self Organizing Maps (SOM)
nets, Elman nets, Perceptron. We focused on Perceptron that is a neural network for supervised learning of
classifiers.
Perceptron Learning paradigm
The Perceptron Learning paradigm is supervised, that is for each input pattern is known the desired output
(labeled training data). Thus, in the learning phase, the synaptic weighs are modified based on the
difference between output and desired output. In other words, we can imagine:
1. a supervisor that gives an input pattern to the Perceptron; the supervisor knows the relative desired
output;
2. the Perceptron calculates the ouptut;
3. the supervisor calculates the difference between output of the previous step and desired output
4. the Perceptron modifies the synaptic weighs based on the previous difference
In the learning phase, the Perceptron works on a “training set” consisting of training examples (patterns).
Instead, in the test phase, the Perceptron works on a “training set” consisting of examples others than
training patterns.
Goal: the Perceptron must correctly determine the class labels for unseen instances.
Convergence Theorem
The perceptron learning algorithm converges in finite number of steps, given a linearly separable dataset .
2
In other words, after a finite number of iterations, the Perceptron can perfectly classify all the training
patterns.
Limits of Perceptron.
The Single Layer Perceptron can only classify patterns belonging linearly separable set, as Marvin Minsky
and Seymour Papert demonstrated. For example, SLP can’t correcltly classify XOR function. For this reason,
the Scientific Community abandoned the Perceptron.
2Linearly separable set means, in n-dimensional pattern space, that exists an hyperplane that separates patterns
belonging different classes.
1Machine learning is a branch of artificial intelligence focused on learning from data.
pf2

Anteprima parziale del testo

Scarica MACHINE LEARNING - APPUNTI e più Appunti in PDF di Informatica solo su Docsity!

Artificial neuron An artificial neuron is the basic element of the neural network. It calculates a weighed sum of the inputs. The output is one (we say that the neuron fires ) if this sum is greater than a certain threshold, otherwise zero. Obviously, it is a very simplified model of the biological neuron. Neural network A neural network is a computing model used in machine learning. It is based on a collection of computing^1 units or nodes called neurons. In this model, the output of each neuron is the input for the other (connected) neurons. McCullough and Pitts showed that a neural network is computationally equivalent to a Turing Machine. There are many kinds of neural networks: Hopfield nets, Self Organizing Maps (SOM) nets, Elman nets, Perceptron. We focused on Perceptron that is a neural network for supervised learning of classifiers. Perceptron Learning paradigm The Perceptron Learning paradigm is supervised, that is for each input pattern is known the desired output (labeled training data). Thus, in the learning phase, the synaptic weighs are modified based on the difference between output and desired output. In other words, we can imagine:

  1. a supervisor that gives an input pattern to the Perceptron; the supervisor knows the relative desired output;
  2. the Perceptron calculates the ouptut;
  3. the supervisor calculates the difference between output of the previous step and desired output
  4. the Perceptron modifies the synaptic weighs based on the previous difference In the learning phase, the Perceptron works on a “training set” consisting of training examples (patterns). Instead, in the test phase, the Perceptron works on a “training set” consisting of examples others than training patterns. Goal : the Perceptron must correctly determine the class labels for unseen instances. Convergence Theorem The perceptron learning algorithm converges in finite number of steps, given a linearly separable dataset.^2 In other words, after a finite number of iterations, the Perceptron can perfectly classify all the training patterns. Limits of Perceptron. The Single Layer Perceptron can only classify patterns belonging linearly separable set, as Marvin Minsky and Seymour Papert demonstrated. For example, SLP can’t correcltly classify XOR function. For this reason, the Scientific Community abandoned the Perceptron. (^2) Linearly separable set means, in n-dimensional pattern space, that exists an hyperplane that separates patterns belonging different classes. (^1) Machine learning is a branch of artificial intelligence focused on learning from data.

Multi-layer Perceptron After the Perceptron was abandoned, the Multi-layer Perceptron(MLP) was created. A MLP is a layered feedforward neural network. Layered means that the neurons are organized by level. Feedforward means that there are no back-edges in the net. There are no connections among neurons. The MLP overcomes the limit of Perceptron, but it has other drawbacks: there is no Convergence theorem and the learning process can fall in the local minima trap. Finally, the Kolmogorov theorem states that 3-layer are sufficient to classify patterns belonging to arbitrairly complex regions, but it is not constructive (it doesn't tell us how to build the MLP). Support Vector Machine In its most general definition, a SVM is an universal learning machine able to classify data optimizing the generalization ability, that is the ability to classify patterns not used in the training phase. The training of a SVM is a process equivalent to solve a convex quadratic programming (QP) problem with linear constraints, finding the optimal decision surface. The SVM overcomes the MLP limit by the so called “kernel trick”: a kernel function transforms the input space in a higher dimension feature space where the patterns are linearly separable, that is a hyperplane that separates the patterns belonging to different classes in the features space. Many algorithms were developed to solve the SVM training problem with different strategies. In particular, Sequential Minimal Optimization (SMO) decomposition algorithms breaks large QP problem in smaller problems, and optimizes at each step only a subset of the training data patterns. This subset is called the working set. Created by Platt and improved by Keerthi , SMO is one of the most popular and fast decomposition algorithm. It uses a two-dimensional working set and it allows an analytical solution with respect to a numerical one. This is the reason of its main characteristics, i.e. SMO scales quadratically in the number of training data patterns, while the other algorithms scale cubically or more.