Back to the full dot-point answer

NSWSoftware EngineeringQuick questions

Module 3: Software Automation

Quick questions on Neural network basics explained: HSC Software Engineering Module 3

13short Q&A pairs drawn directly from our worked dot-point answer. For full context and worked exam questions, read the parent dot-point page.

What is the artificial neuron?
Show answer
The basic unit. It takes inputs x1,x2,,xnx_1, x_2, \dots, x_n from the previous layer, multiplies each by a weight, sums them, adds a bias, and applies an activation function:
What is layers?
Show answer
A neural network is a stack of layers:
What is forward pass?
Show answer
To make a prediction, feed the input through every layer in turn. Each layer computes its weighted sums and activations. The output layer produces the prediction.
What is loss?
Show answer
Measures how wrong the prediction is.
What is backpropagation?
Show answer
The training algorithm. For each batch of training examples:
What is a worked code example?
Show answer
A minimal feed-forward network in PyTorch:
What is hyperparameters?
Show answer
Choices the developer makes that affect training:
What is overfitting?
Show answer
A neural network with enough parameters can memorise the training data exactly. Such a model has zero training error but performs poorly on new data. Detection: training loss keeps falling while validation loss starts rising. Prevention: more training data, smaller network, dropout, regularisation, early stopping.
What is beyond feed-forward?
Show answer
For images and other structured inputs, specialised architectures perform far better:
What is forgetting the bias term?
Show answer
Each neuron has a learnable bias, not just weights. Without it, the network is constrained to predictions that pass through the origin.
What is treating layers as identical?
Show answer
Different layers can have different activations. Convolutional layers, pooling layers, normalisation layers are different from fully connected layers.
What is saying neural networks "think like a brain"?
Show answer
The biological metaphor is loose. Artificial neurons are simple weighted sums; biological neurons are far more complex. Use the analogy carefully.
What is confusing training and inference?
Show answer
Training adjusts weights; inference applies the trained weights to new data. Inference is much cheaper than training. :::

All Software EngineeringQ&A pages