AP Computer Science Principles Quiz
20 questions · no time limit
0:00
ALGORITHMS AND PROGRAMMING
Question 1 of 20
No time limit
Current
Answered
Flagged
Not seen
In a machine learning lab, a student uses the Scikit-learn library (prewritten ML tools) to classify emails as spam or not spam. After
from sklearn.neighbors import KNeighborsClassifier, they write model = KNeighborsClassifier(n_neighbors=3) and later model.fit(XTrain, yTrain). Based on the scenario described, which function best trains the classifier on labeled data? YOUR PROGRESS
20
QUESTIONS
Ready when you are
Answer in any order. Your progress shows here as you go.
QUESTIONS
KEYBOARD
Pick an answer ABCD
Next question ↵→
Previous ←
Flag for review F
Answers save as you go · flagged questions come back at the end