You will write a program that learns the best dividing line from labelled examples, the way a simple learning filter adapts its own data.
Your tasks.
correct, count how many examples a dividing line t sorts correctly. An example (score, unwanted) is right when score > t is the same as unwanted.t from 0 to 10, and set best_t to the first one that gives the most correct.best_count to the number correct for best_t.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…