Neural Network Basics Flashcards

1
Q

Linear function for neural network?

A

Signals from the input are multiplied by weights and summed up, then bias is added. Each parameter can be trained to yield the desired results

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

What is activation function?

A

Function that calculates the output of the node based on its individual inputs and their weights

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

What is step function?

A

1 for x>0, 0 otherwise (looks like a ladder). Not well suited for NN training

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

What is ReLU?

A

Rectified linear unit. relu(x) = max (0, x) - starts from 0 45 degrees, goes endlessly. Very easy to compute, yet offers enough capability to build complex models.

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

Algorithm of NN training

A

Initiate parameters (randomly) - predict on training data - compute loss - compute gradient - update parameters - repeat

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

What is sigmoid?

A

1 / 1+ e^-x, logistic function, ensures output is between 0 and 1

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

What is tanh?

A

Scaled and shifted sigmoid: 2 x sigmoid (2x)-1. Output is between -1 and 1. Used to be popular in place of ReLU

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

What is MLP?

A

Multi-Layer Perception: arrangement of neurons into multiple layers

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

What is inferincing?

A

Using a model after training to make new predictions. Inputs -> Model -> Results

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

What is SGD (Stochastic Gradient Decsent) ?

A

Optimization algorithm to minimize the loss function and adjust the model parameters (e.g., weights and biases) during training.

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

Explain the difference between a metric and a loss

A

Metric: What we (as humans) actually care about, changes if actually one of the predictions changes when we change the weights
Loss: Drive automated learning; compromise between metric and a differentiable function.
loss function reacts to small changes in predicted score, gives finegrained performance assessment

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

First code line for simple neural network

A

nn.Sequential(

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

Layer between activation functions

A

nn.Linear (input, output)

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

Why use activation function?

A

Adding Non-linearity, Helping the Network Decide

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

What is learning rate?

A

Small number that controls how much a neural network adjusts its parameters (like weights and biases) during training.

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