# HG changeset patch # User Frederic Bastien # Date 1228166181 18000 # Node ID 96221aa02fcb130eb355d4b0f0cba580d35ff221 # Parent 83ebb313b2f1b6d20c3203571e05fa01fc05ea38 put the new test in a different test fct. diff -r 83ebb313b2f1 -r 96221aa02fcb pylearn/algorithms/rnn.py --- a/pylearn/algorithms/rnn.py Mon Dec 01 16:15:10 2008 -0500 +++ b/pylearn/algorithms/rnn.py Mon Dec 01 16:16:21 2008 -0500 @@ -202,7 +202,18 @@ else: rnn.minimizer.step_cost(x, y) - +def test_WEIRD_STUFF(): + n_vis = 5 + n_out = 3 + n_hid = 4 + rng = N.random.RandomState(7722342) + x = rng.randn(10,n_vis) + y = rng.randn(10,n_out) + + #set y to be like x with a lag of LAG + LAG = 4 + y[LAG:] = x[:-LAG, 0:n_out] + minimizer_fn = make_minimizer('sgd', stepsize = 0.001, WEIRD_STUFF = False) rnn_module = ExampleRNN(n_vis, n_hid, n_out, minimizer_fn)