コード例 #1
0
ファイル: test_sparsecoding.py プロジェクト: osdf/breze
def test_sparse_coding_iter_fit():
    X = np.random.standard_normal((10, 2))
    X, = theano_floatx(X)
    sf = SparseCoding(2, 7, max_iter=10)
    for i, info in enumerate(sf.iter_fit(X)):
        if i >= 10:
            break
コード例 #2
0
ファイル: test_sparsecoding.py プロジェクト: gabobert/breze
def test_sparse_coding_fit():
    raise SkipTest()
    X = np.random.standard_normal((10, 2))
    X, = theano_floatx(X)

    sf = SparseCoding(2, 7, max_iter=10)
    sf.fit(X)
コード例 #3
0
def test_sparse_coding_iter_fit():
    raise SkipTest()
    X = np.random.standard_normal((10, 2))
    X, = theano_floatx(X)
    sf = SparseCoding(2, 7, max_iter=10)
    for i, info in enumerate(sf.iter_fit(X)):
        if i >= 10:
            break
コード例 #4
0
ファイル: test_sparsecoding.py プロジェクト: osdf/breze
def test_sparse_coding_transform():
    X = np.random.standard_normal((10, 2))
    X, = theano_floatx(X)
    sf = SparseCoding(2, 7, max_iter=10)
    sf.transform(X)
コード例 #5
0
def test_sparse_coding_fit():
    X = np.random.standard_normal((10, 2))
    sf = SparseCoding(2, 7, max_iter=10)
    sf.fit(X)
コード例 #6
0
ファイル: test_sparsecoding.py プロジェクト: ddofer/breze
def test_sparse_coding_iter_fit():
    X = np.random.standard_normal((10, 2))
    sf = SparseCoding(2, 7, max_iter=10)
    for i, info in enumerate(sf.iter_fit(X)):
        if i >= 10:
            break