示例#1
0
文件: test_rica.py 项目: osdf/breze
def test_rica_reconstruct():
    X = np.random.standard_normal((10, 2))
    X, = theano_floatx(X)
    rica = Rica(2, 10, code_transfer='softabs',
                hidden_transfer='identity', loss='squared',
                c_ica=0.5, max_iter=10)
    rica.reconstruct(X)
示例#2
0
文件: test_rica.py 项目: makarl/breze
def test_rica_iter_fit():
    X = np.random.standard_normal((10, 2))
    rica = Rica(2, 10, feature_transfer='softabs',
                hidden_transfer='identity', loss='squared',
                c_ica=0.5, max_iter=10)
    for i, info in enumerate(rica.iter_fit(X)):
        if i >= 10:
            break
示例#3
0
文件: test_rica.py 项目: makarl/breze
def test_rica_fit():
    X = np.random.standard_normal((10, 2))
    rica = Rica(2, 10, feature_transfer='softabs',
                hidden_transfer='identity', loss='squared',
                c_ica=0.5, max_iter=10)
    rica.fit(X)