Well, what you've got is certainly reasonable.

> Otherwise most code in this example would deal with the specifics of the dataset and not with the problem at hand...

I guess there's the option of externalising it to `sklearn.datasets`...