Training model in exercise 21?

Hi.


I´ve completed all the 21 exercises in advanced mode, but I´m a bit curios on how you got your weights and biases in exercise 21.
I would like to write some code to train my own model, but there is not much info on how to do this, using sklearn.
Could you explain what code you used to set-up and train that model?

regards

/Ulf