November 2017
Intermediate to advanced
1035 pages
11h 31m
English
Let's train a multilayer perceptron to approximate the XOR function. At the time of writing, multilayer perceptrons have been implemented as part of a 2014 Google Summer of Code project, but have not been merged or released. Subsequent versions of scikit-learn are likely to include this implementation of multilayer perceptrons without any changes to the API described in this section. In the interim, a fork of scikit-learn 0.15.1 that includes the multilayer perceptron implementation can be cloned from https://github.com/IssamLaradji/scikit-learn.git.
First, we will create a toy binary classification dataset that represents XOR and split it into training and testing sets:
>>> from sklearn.cross_validation ...
Read now
Unlock full access