Interfacing Keras to scikit-learn