Feedforward Neural Networks 2 Flashcards

1
Q

Node

A
  • Processes input data and contributes to the network’s output
  • can be tensor, matrix, vector, or scalar value
  • Input can be from features from data or output value of other node
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Edge

A
  • Represents a function argument
  • Pointers to nodes
  • Can be adjusted during optimization to make better predictions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Epoch

A
  • One full cycle through the entire training dataset
  • Adjust parameters (weights and biases) based on the gradients of the loss function
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Training a Model Steps

A
  1. Define a computation graph (FFNN class)
  2. For each epoch:
    a. for each batch of data: compute loss, autograd to compute gradients, and take step with optimizer
    b. evaluate on validation set to avoid overfitting
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Shuffling the Training Data

A
  • What if “I love you” at end of training set 1000 times
  • Parameters will be inaccurately updated
  • Randomly shuffling the order at each time step of before training epoch
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Early Stopping

A
  • Prevents overfitting
  • Stop training when performance starts to decline
  • Return best parameters
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Training Tricks

A
  1. Shuffling the training data
  2. Early stopping
  3. Parameter dropout
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Parameter Dropout

A
  • Prevents overfitting
  • Randomly setting a portion of the model’s parameters (weights) to zero
  • Done only at training time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Mini-batching

A
  • Splitting the training set into smaller, manageable subsets
  • Combines smaller operations into one big one (more efficient computation)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Batch Data Loading

A
  • Instead of processing one single sentence, process mini-batch of sentences
  • Must perform sentence padding on mini-batches
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Sentence Padding

A
  • done during batch data loading
  • pad shorter sentences in batch to match lengths
How well did you know this?
1
Not at all
2
3
4
5
Perfectly