comparison code_tutoriel/logistic_sgd.py @ 2:bcc87d3e33a3

adding latest tutorial code
author Dumitru Erhan <dumitru.erhan@gmail.com>
date Sun, 24 Jan 2010 22:34:29 -0500
parents fda5f787baa6
children 4bc5eeec6394
comparison
equal deleted inserted replaced
1:0fda55a7de99 2:bcc87d3e33a3
145 This is demonstrated on MNIST. 145 This is demonstrated on MNIST.
146 146
147 :param learning_rate: learning rate used (factor for the stochastic 147 :param learning_rate: learning rate used (factor for the stochastic
148 gradient 148 gradient
149 149
150 :param n_iter: number of iterations ot run the optimizer 150 :param n_iter: maximal number of iterations ot run the optimizer
151 151
152 """ 152 """
153 153
154 # Load the dataset 154 # Load the dataset
155 f = gzip.open('mnist.pkl.gz','rb') 155 f = gzip.open('mnist.pkl.gz','rb')