コード例 #1
0
ファイル: test_rnn.py プロジェクト: osdf/breze
def test_slstm_iter_fit():
    X = np.random.standard_normal((10, 5, 2)).astype(theano.config.floatX)
    Z = np.random.standard_normal((10, 5, 3)).astype(theano.config.floatX)
    X, Z = theano_floatx(X, Z)
    rnn = SupervisedLstmRnn(2, [10], 3, hidden_transfers=['sigmoid'], max_iter=10)
    for i, info in enumerate(rnn.iter_fit(X, Z)):
        if i >= 10:
            break
コード例 #2
0
ファイル: test_rnn.py プロジェクト: gabobert/breze
def test_slstm_iter_fit():
    X = np.random.standard_normal((10, 5, 2)).astype(theano.config.floatX)
    Z = np.random.standard_normal((10, 5, 3)).astype(theano.config.floatX)
    X, Z = theano_floatx(X, Z)
    rnn = SupervisedLstmRnn(2, [10], 3, hidden_transfers=['sigmoid'], max_iter=10)
    for i, info in enumerate(rnn.iter_fit(X, Z)):
        if i >= 10:
            break
コード例 #3
0
def test_slstm_predict():
    X = np.random.standard_normal((10, 5, 2)).astype(theano.config.floatX)
    X, = theano_floatx(X)
    rnn = SupervisedLstmRnn(2, [10],
                            3,
                            hidden_transfers=['sigmoid'],
                            max_iter=10)
    rnn.predict(X)
コード例 #4
0
ファイル: test_rnn.py プロジェクト: osdf/breze
def test_slstm_predict():
    X = np.random.standard_normal((10, 5, 2)).astype(theano.config.floatX)
    X, = theano_floatx(X)
    rnn = SupervisedLstmRnn(2, [10], 3, hidden_transfers=['sigmoid'], max_iter=10)
    rnn.predict(X)
コード例 #5
0
ファイル: test_rnn.py プロジェクト: vinodrajendran001/breze
def test_slstm():
    X = np.random.standard_normal((10, 5, 2)).astype(theano.config.floatX)
    Z = np.random.standard_normal((10, 5, 3)).astype(theano.config.floatX)
    X, Z = theano_floatx(X, Z)
    rnn = SupervisedLstmRnn(2, [10], 3, hidden_transfers=["sigmoid"], max_iter=10)
    rnn.fit(X, Z)