Challenge
Real scikit-learn programs, cut into lines and shuffled. Put them back in the right order, set the indentation, fill in the gaps, spot the bugs, and finally write the function yourself. Eight algorithms, five levels, three challenges per level.
A line can only use things that already exist above it. You cannot fit a model before you create it, or predict before you train it.
In Python, indented lines belong to the function above them. A line pushed too far left or right is not just ugly, it changes what the program does.
This page checks that your code has the right pieces in a sensible order. It does not run Python, so a pass means "well built", not "proven correct".