Example #1
0
def test_nca():
    X = T.matrix()
    X.tag.test_value = np.random.random((20, 10)).astype(theano.config.floatX)
    Y = T.matrix()
    Y.tag.test_value = np.random.random(
        (20, 1)).astype(theano.config.floatX) > 0.5
    expr = ncac(X, Y)
Example #2
0
def test_nca():
    X = T.matrix()
    X.tag.test_value = np.random.random((20, 10)).astype(theano.config.floatX)
    Y = T.matrix()
    Y.tag.test_value = np.random.random((20, 1)).astype(theano.config.floatX) > 0.5
    expr = ncac(X, Y)
Example #3
0
def test_nca():
    X = T.matrix()
    X.tag.test_value = np.random.random((20, 10))
    Y = T.matrix()
    Y.tag.test_value = np.random.random((20, 1)) > 0.5
    expr = ncac(X, Y)