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