You need a quick baseline that classifies short support tickets into five categories before trying a large model. What is a sensible first step?
- Exam domain
- Multimodal Data15% of the exam
- Difficulty
- Easy
- In this mock
- 7 questions on this domainPractise this domain
Why the exam asks this
Multimodal Data (15% of the exam)
Objective in the exam guide: Use Python packages (spaCy, NumPy, Keras, etc.) to implement specific traditional machine learning analyses.
Traditional ML analyses are still expected knowledge.
Why C is the answer
Use TF-IDF features with a logistic regression classifier
A traditional baseline is fast to build and shows how much a larger model adds. TF-IDF plus logistic regression is a common text baseline.
Remember: Build a traditional ML baseline first.
How it works
Traditional ML with packages such as scikit-learn or Keras gives baselines for comparison.
In detail
- Start with a simple baseline.
- Compare larger models against it.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Pretrain a language model from scratchWrong
Pretraining is far too costly for a baseline.
B. Skip the baseline and deploy the largest model availableWrongMost tempting
Without a baseline you cannot tell if the big model is worth it.
Why it tempts: Big models often win, so skipping the baseline is tempting.
C. Use TF-IDF features with a logistic regression classifierRight
Build a traditional ML baseline first.
D. Train a multimodal diffusion modelWrong
Diffusion models generate images; they do not classify tickets.
Use case
An illustrative scenario, not a real incident.
Illustrative: the baseline reaches 81% and a fine-tuned model 86%, which justifies the extra cost.
See it in different ways
flowchart LR S0["Clean text"] --> S1["TF-IDF features"] --> S2["Logistic regression"] --> S3["Evaluate"] --> S4["Compare with LLM"]
How to read this chart
- Read it in order: Clean text, then TF-IDF features, then Logistic regression, then Evaluate, then Compare with LLM.
flowchart TD
Q{"Gain over baseline?"}
Q -->|"Large gain"| A0["Use the bigger model"]
Q -->|"Small gain"| A1["Keep the baseline"]How to read this chart
- At "Gain over baseline?": if "Large gain", go to "Use the bigger model"; if "Small gain", go to "Keep the baseline".
Related questions
Learn more
- Our lesson: Multimodal data and LLM applications
- Practise Multimodal Data questions in the mock exam
- Source: Metrics and scoring (scikit-learn)
- Source: Tuning the hyper-parameters of an estimator (scikit-learn)
- What Is Retrieval-Augmented Generation (NVIDIA Blog)
- spaCy usage documentation
- NumPy documentation
- NVIDIA NIM documentation