예제 #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)