Exemple #1
0
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
Exemple #2
0
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)
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
Exemple #4
0
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)
Exemple #5
0
def test_sparse_coding_fit():
    X = np.random.standard_normal((10, 2))
    sf = SparseCoding(2, 7, max_iter=10)
    sf.fit(X)
Exemple #6
0
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