variegatus Michael Eickenberg Equipe Parietal Inria Saclay / Neurospin, CEA Saclay * No animals were harmed making this talk ** Slides HEAVILY borrowed from Kyle Kastner's talk at EuroSciPy2014 -- Thanks!
interface to trained networks • Bring deep nets into sklearn pipelines • Includes examples from this talk https://github.com/sklearn-theano/sklearn-theano
models OverFeat (NYU)[4] DeCAF (UCB) Canny Not pictured: Weeks of expert time and compute time Cross-validation of entire networks! linear models SVM sklearn- theano
sklearn.pipeline import make_pipeline from sklearn.linear_model import \ LogisticRegression from sklearn_theano.feature_extraction import ( OverfeatTransformer, OverfeatClassifier) pipeline1 = OverfeatClassifier() pipeline2 = make_pipeline(OverfeatTransformer(output_layer=[-3]), LogisticRegression()) for ImageNet concepts only: General purpose: Use features to learn a new task
[5] • Trains two networks ◦ Generate examples from random input ◦ Discriminate whether generated or real Generation sklearn_theano/examples/plot_mnist_generator.py
it out! - Why translate Caffe models to Theano? - Make it really easy to use out of the box with sklearn! - Bring Caffe into the Theano world! - immediate access to all layers of state of the art pre- trained nets in your theano structures! - For many other things, it is really worth installing and using Caffe!
deep nets) • Theano is a great package for {C,G}PU math in Python • Neural networks are powerful feature extractors • Use large neural nets easily in sklearn-theano ◦ Use them within sklearn pipelines ◦ Use them as building blocks for your own Theano net
convolutional nets • Support other types of inputs, e.g. audio and text • Enable fine tuning to specific tasks • Help us bring powerful feature extractors into the scikit- learn and Theano worlds! • Scattering transform
D. Eigen, X. Zhang, M. Mathieu, R. Fergus, Y. LeCun. OverFeat: Integrated Recognition, Localization and Detection using Convolutional Networks, International Conference on Learning Representations (ICLR 2014), April 2014. http://arxiv.org/abs/1406.2661 [5] I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, Y. Bengio. Generative Adversarial Networks, arXiV, June 2014. http://arxiv.org/abs/1406.2661 [6] Going Deeper With Convolutions, C. Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, Andrew Rabinovich, September 2014. http://arxiv.org/abs/1409.4842