Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1model.fit(X_train, y_train) | Aresult = model.predict(student) # 'Pass' | |
| 2model.predict(X_new) | BTesting a model only on the data it was trained on does not show how well it predicts new data. | |
| 3Classification predicts a category, such as whether a student will pass or fail | CUses the trained model to predict outcomes for new data it has not seen before | |
| 4Numeric prediction estimates a number, such as next month's sales in dollars | DTraining data needs both the inputs and the known outcomes from past data. Without known outcomes the model has nothing to learn from. | |
| 5model.fit(X_new) # train on data with no known outcomes | Esales = model.predict(month) # 4250.50 | |
| 6model.predict(X_train) # then claim it works well on new data | FTrains the model on past data so it can learn the patterns linking the inputs to the known outcomes |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
machine learning — Training a model on past data so it learns patterns and can predict outcomes for new data, such as a category (classification) or a number (numeric prediction).trainingData ← load("sales.csv")
model ← train(trainingData)pastResults ← load("results.csv")
model ← train(pastResults)model ← train(pastStudents)
label ← predict(model, newStudent)label ← predict(model, newStudent)
IF label = "Pass" THENmodel ← train(pastMarks)
prediction ← predict(model, 6)
OUTPUT prediction