Tutorial for logistic regression is basically the Quick Start guide. Please follow the tutorial there. A full working code is presented in the following.
This code contains one method that explains how to build a logistic regression classifier for the MNIST dataset using the yann toolbox.
For a more interactive tutorial refer the notebook at yann/pantry/tutorials/notebooks/Logistic Regression.ipynb
This function is a demo example of logistic regression.