示例#1
0
文件: test_rnn.py 项目: osdf/breze
def test_srnn_predict():
    X = np.random.standard_normal((10, 5, 2)).astype(theano.config.floatX)
    X, = theano_floatx(X)

    rnn = SupervisedRnn(2, [10], 3, hidden_transfers=['tanh'], max_iter=10)
    rnn.predict(X)

    rnn = SupervisedRnn(2, [10], 3, hidden_transfers=['tanh'], skip_to_out=True, max_iter=10)
    rnn.predict(X)
示例#2
0
def test_srnn_predict():
    X = np.random.standard_normal((10, 5, 2)).astype(theano.config.floatX)
    X, = theano_floatx(X)

    rnn = SupervisedRnn(2, [10], 3, hidden_transfers=['tanh'], max_iter=2)
    rnn.predict(X)

    rnn = SupervisedRnn(2, [10], 3, hidden_transfers=['tanh'], max_iter=2)
    rnn.predict(X)
示例#3
0
文件: test_rnn.py 项目: makarl/breze
def test_srnn_predict():
    X = np.random.standard_normal((10, 5, 2)).astype(theano.config.floatX)
    rnn = SupervisedRnn(2, 10, 3, max_iter=10)
    rnn.predict(X)
示例#4
0
def test_srnn_predict():
    X = np.random.standard_normal((10, 5, 2))
    rnn = SupervisedRnn(2, 10, 3, max_iter=10)
    rnn.predict(X)
示例#5
0
文件: test_rnn.py 项目: ddofer/breze
def test_srnn_predict():
    X = np.random.standard_normal((10, 5, 2)).astype(theano.config.floatX)
    rnn = SupervisedRnn(2, 10, 3, max_iter=10)
    rnn.predict(X)