Training a Network with scikit-learn
You do not have to build every network by hand. scikit-learn's MLPClassifier is a small neural network (a multi-layer perceptron). hidden_layer_sizes sets the layers. Neural networks train best on scaled inputs, so a pipeline with StandardScaler is standard.
Examplepython
Quick check
What does `hidden_layer_sizes=(32,)` describe?
Your turn: write the code
Print the number of pixels (features) in each digit image.
Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.
Tip: use the left and right arrow keys to move between lessons.