X-Received: by 10.152.5.4 with SMTP id o4mr2625lao.40.1412613619750;
Mon, 06 Oct 2014 09:40:19 -0700 (PDT)
X-BeenThere: theano-users-/***@public.gmane.org
Received: by 10.152.21.193 with SMTP id x1ls626838lae.53.gmail; Mon, 06 Oct
2014 09:40:16 -0700 (PDT)
X-Received: by 10.112.220.8 with SMTP id ps8mr930623lbc.5.1412613616749;
Mon, 06 Oct 2014 09:40:16 -0700 (PDT)
Received: from ks356264.kimsufi.com (ks356264.kimsufi.com. [91.121.141.22])
by gmr-mx.google.com with ESMTP id hv5si563555wib.1.2014.10.06.09.40.16
for <theano-users-/***@public.gmane.org>;
Mon, 06 Oct 2014 09:40:16 -0700 (PDT)
Received-SPF: none (google.com: blip-***@public.gmane.org does not designate permitted sender hosts) client-ip.121.141.22;
Received: by ks356264.kimsufi.com (Postfix, from userid 1000)
id 66708573; Mon, 6 Oct 2014 18:40:16 +0200 (CEST)
In-Reply-To: <CADKKbti71TSoPJn=kpz15i7b81sngC5EuskiyQMU-TEH+zrEMg-JsoAwUIsXosN+***@public.gmane.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Original-Sender: lamblinp-***@public.gmane.org
X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral
(google.com: blip-***@public.gmane.org does not designate permitted sender hosts) smtp.mail=blip-***@public.gmane.org
Precedence: list
Mailing-list: list theano-users-/***@public.gmane.org; contact theano-users+owners-/***@public.gmane.org
List-ID: <theano-users.googlegroups.com>
X-Google-Group-Id: 255958038354
List-Post: <http://groups.google.com/group/theano-users/post>, <mailto:theano-users-/***@public.gmane.org>
List-Help: <http://groups.google.com/support/>, <mailto:theano-users+help-/***@public.gmane.org>
List-Archive: <http://groups.google.com/group/theano-users
Sender: theano-users-/***@public.gmane.org
List-Subscribe: <http://groups.google.com/group/theano-users/subscribe>, <mailto:theano-users+subscribe-/***@public.gmane.org>
List-Unsubscribe: <mailto:googlegroups-manage+255958038354+unsubscribe-/***@public.gmane.org>,
<http://groups.google.com/group/theano-users/subscribe>
Content-Disposition: inline
Archived-At: <http://permalink.gmane.org/gmane.comp.mathematics.theano.user/3067>
Also, you can make l_r a shared variable, and update it via a Theano
expression, if it is convenient to do so. For instance:
l_r = theano.shared(np.array(0.1, dtype=theano.config.floatX))
...
updates.append((l_r, 0.9 * l_r)) # Or however you want to change your learning rate
train_model = theano.function([index], cost, updates=updates, givens=...)
Post by Frédéric BastienFred
Post by Ofir Levyok I think I got it
learning_rate = 0.1
l_r = T.scalar('l_r', dtype=theano.config.floatX)
updates.append((param_i, param_i - l_r * grad_i))
train_model = theano.function([index,l_r], cost, updates = updates,
givens={
x: train_set_x[index * batch_size: (index + 1) * batch_size],
y: train_set_y[index * batch_size: (index + 1) * batch_size]})
cost_ij = train_model(minibatch_index, learning_rate)
Post by Ofir Levylearning_rate = 0.1
updates.append((param_i, param_i - learning_rate * grad_i))train_model = theano.function([index], cost, updates = updates,
givens={
x: train_set_x[index * batch_size: (index + 1) * batch_size],
y: train_set_y[index * batch_size: (index + 1) * batch_size]})
cost_ij = train_model(minibatch_index)
can you kindly tell me how to change it to have a adaptive learning rate?
Post by Frédéric BastienMake a theano variable that is the learning rate and pass it as an input
to your theano function.
You could also use a shared variable is you don't want to pass it
http://deeplearning.net/software/theano/tutorial/
examples.html#using-shared-variables
Fred
Post by s***@public.gmane.orgHi,
I would to change the learning rate in learning procedure. A large
learning rate is used in the initial stage and small is used in later. How
can I do.
Thanks
Jiancheng
--
---
You received this message because you are subscribed to the Google
Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
For more options, visit https://groups.google.com/d/optout.
--
Pascal
--
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theano-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.