What type of machine learning algorithm is used when the model is trained on labeled historical data with known target outcomes?
Answer and explanation
Correct answer: B. Supervised learning
- Step 1: Supervised machine learning algorithms (e.g., linear regression, classification decision trees) are provided with labeled training pairs .
- Step 2: The algorithm learns a mathematical mapping function to accurately predict labels for new, unseen input instances.
Answer
Supervised learning.
Why not the others: 'Unsupervised learning' discovers hidden patterns in unlabeled data; 'Reinforcement learning' trains agents via trial-and-error rewards and penalties; 'Clustering' is an unsupervised technique.
Practise more Python Programming, Data Structures, Algorithms, Networks and Cybersecurity.
Free questions with an explanation for every one, and full timed Saudi Secondary School Certificate mock tests.
More Python Programming, Data Structures, Algorithms, Networks and Cybersecurity questions
- What is the time complexity of searching for an element in an unsorted array of elements using linear search?
- What is the output of the following Python expression: `[x**2 for x in range(5) if x % 2 == 1]`?
- Which data structure operates on a Last-In, First-Out (LIFO) access principle?
- Which SQL clause is used to filter aggregated group records after a `GROUP BY` statement has been applied?
- What type of network topology connects all nodes to a central forwarding device such as a network switch?
- In cybersecurity, what type of malicious attack overwhelms a web server with massive volumes of traffic from multiple compromised sources toā¦