Module 1: Perceptrons & MLPs Flashcards

1
Q

What is a neural network?

A

A parametric model that takes data as input and generates an output by applying several consecutive operations on the data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What determines how the parameters of a neural network are adjusted?

A

The difference between the generated output and the expected output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a perceptron?

A

The basic building block of the neural network; A neural network that works by taking several binary inputs, x1, x2, …, xn, and produces a single binary output.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How is the output of a perceptron computed, and what is this called?

A

It’s determined by whether the weighted sum is < or > some threshold value. This Is referred to as the activation function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the step activation function, and how does it work?

A

A step activation function is an activation function that checks if the sum of the inputs * weights is > or < 0. If > 0, the NN outputs 1, If < 0, the NN outputs 0.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the role of the bias term?

A

It acts as a threshold for the activation function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does adjusting the bias term (w0) affect the step activation function?

A

Increasing w0 (aka. bias > 0) makes the neuron more sensitive to the bias term and makes activation (1) more likely. Decreasing w0 (aka. bias < 0) makes the neuron less sensitive to the bias term and makes activation (1) less likely.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the components of a perceptron and a multi-layer perceptron?

A

Perceptron has a weighted input layer and an output layer. A multi-layer perceptron has an input layer, at least one hidden layer, and an output layer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What type of classifier is a perceptron? How does it work?

A

A perceptron is a linear classifier. It works by drawing a hyperplane that separates 2 areas of the space linearly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

In training a perceptron, what is the error?

A

The difference between the expected output and the produced output.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the error used for in training a perceptron?

A

To update the parameters & weights

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the learning rate?

A

A hyper-parameter that defines the pace at which the network updates its parameters/ learns.

(smaller values = slower learning, probability to get stuck @ local minima, better convergence to a minima; larger values = faster learning, possibility to escape local minima, may cause oscillations)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What formulas define the perceptron update rule?

A

The change for a weight = learning rate * error * input. It is applied by adding current weight + change for the weight

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the limitations of a perceptron?

A

Can only separate space linearly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Explain the limitations of a perceptron using an XOR logical gate, and a possible solution.

A

No single straight line can be used to separate the points.

2 perceptrons can be used to separate the points; any input between the 2 lines belongs to 1 class, and the rest to the other.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does stacking perceptrons refer to?

A

A layer of multiple perceptrons with the same inputs

17
Q

How do you calculate the output of stacking perceptrons?

A

By performing matrix multiplication/ linear algebra

18
Q

What is a multilayer perceptron?

A

A perceptron formed by more than one layer (dense/ fully connected layers)

19
Q

What are sample applications of multilayer perceptrons?

A
  1. Classification (e.g. cats or dogs)
  2. Compression (e.g. image size)
  3. Time series prediction
  4. Multiple targets (e.g. is there a dog in this image and where?)