Machine learning basics
HSC Software Engineering · Unit 4: Automation & ML
Machine learning basics notes
Fact-checked by a second, independent AI review.
A concise overview of core machine learning ideas needed for Automation & ML, focusing on definitions, data roles, model evaluation, and common exam angles.
- Supervised learning
- A model learns from labeled data (features and known outputs) to predict labels on new data.
- Training vs testing data
- Data is split into training and testing sets to train the model and then evaluate its performance on unseen data.
- Features and labels
- Features are the input variables; labels are the outputs the model tries to predict.
- Overfitting vs underfitting
- Overfitting means the model learns noise in training data; underfitting means it misses patterns. Both indicate poor generalisation.
- Evaluation metrics
- Use metrics like accuracy, precision, recall, F1, and confusion matrix to assess model quality and suitability for the task.
Remember it: FEEDS: Features,_examples,_errors,Deploy,Score — remember these to map data to decisions.
Exam tip: Markers look for clear definitions of supervised learning, data split rationale, distinction between features/labels, grasp of overfitting/underfitting, and appropriate use of basic evaluation metrics with simple examples.
Syllabus checklist
- Machine learning basics: core ideas
- Terms and typical exam questions for "Automation & ML" in NSW HSC Software Engineering
Practice questions
1. In ML, overfitting occurs when the model fits training data too closely and fails to generalise.
Answer checked
Show answer
Answer: It memorises training data and performs poorly on new data. Overfitting means poor generalisation due to memorising training data.
2. A confusion matrix shows TP, FP, TN and FN.
Answer checked
Show answer
Answer: True. It counts true positives, false positives, true negatives and false negatives.
3. In supervised learning, the ____ is the set used to guide model training.
Answer checked
Show answer
Answer: training set. The training set provides labels for learning the model parameters.
4. Which metric measures the proportion of correct predictions?
Answer checked
Show answer
Answer: Accuracy. Accuracy is the ratio of correct predictions to total predictions.
5. Compute the error rate: 38 misclassified out of 50.
Answer checked
Show answer
Answer: 0.76. Error rate = misclassified ÷ total = 38/50 = 0.76.

Practise machine learning basics as a game
Hearts, combos, streaks and an AI tutor that explains every answer. Start free.