Chapter 7: Artificial Neural Networks Flashcards

1
Q

Give the three types of neural network models

A

single neuron model

single layer perceptron

multilayer perceptron

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

how is the output of a neuron created

A

activation function * ( sum of (weights * input) + bias )

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

what does an activation function do

A

squishes the amplitude range of the output signal

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

give some activation functions

A

identity

threshold

sigmoid/ tanh

Relu

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

what is the identity function

A

no change φ(v) = v

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

what is the symbol for the activation function

A

phi φ

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

what is the threshold function

A

maps to {-1 , 1}
φ(v) = 1 if v >= 0
-1 if v < 0

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

what is the sigmoid function

A

maps to { 0 , 1 }

1 / 1 + exp (-v)

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

give the tanh sigmoid function

A

maps to { -1, 1}
exp( 2v ) - 1
—————-
exp( 2v ) + 1

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

give the rectified linear unit function

A

maps to ( v, 0 )
φ(v) = v if v >= 0
0 if v < 0

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

what does relu stand for

A

rectified linear unit

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

describe a single layer perceptron

A

one input layer

one output layer

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

what are hidden layers

A

between the input and output

creates complex function

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

what is a multi layer perceptron

A

also called a feed forward neural network

consists of at least three layers

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

what are the hyperparameters in a neural network

A

the number of hidden layers

the number of neurons in each layer

the number of hidden layers

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

what is training in neural networks

A

the process of finding the optimal settings for the weights

17
Q

what are the two training methods for a neural network

A

Hebbian learning

gradient descent

18
Q

what is Hebbian learning

A

calculate weights based on the values of the nodes at either end
wij = learning rate * xi * xj

19
Q

how is gradient descent different in a neural network

A

we cant set to 0 as this is an unsolvable equation

20
Q

what is the perceptron algorithm

A

train a single neuron by minimising the perceptron criterion using SGD.

The activation function is identity and the weights and bias equivalent to coefficient vector of linear model

21
Q

what is the perceptron criterion (describe)

A

how we minimise the error function in the perceptron algorithm

22
Q

give the equation of the perceptron criterion

A

O(w) = - sum yi (W^T Xtilde i)

23
Q

how do we minimise the perceptron criterion

A

SGD weight update

24
Q

give the equations for SGD weight update

A

Oi(w) = -yi W^T Xtildei
derivative respect to w = -yixi

hence
w^(t+1) = W^t + learningrate * yi * xi

25
Q

what is a feed forward netural network

A

calculate error front to end

26
Q

what is cross entropy loss

A

plug a logistic regression model into the prediction (output) layer
(e.g. softmax)

27
Q

how do we regularise a neural network

A

add a regularisation term to the final optimisation objective function for training

28
Q

give the equation for l2 regularisation

A

O(wnn) = loss(wnn) + lamda * 0.5 * || wnn || 22

29
Q

describe the steps of backpropagation

A
  1. calculate loss function (feed forward)
  2. expand to get a full equation for each output node
  3. calculate the sum of least squares error
  4. apply the chain rule