Ejemplo n.º 1
0
def test_masked_cost():
    graph = OrderedDict()
    X_sym, y_sym = add_datasets_to_graph([X, y], ["X", "y"], graph)
    cost = gaussian_error(.5 * X_sym, .5 * X_sym, X_sym)
    masked = masked_cost(X_sym, y_sym)
    theano.function([X_sym, y_sym], [cost, masked], mode="FAST_COMPILE")
Ejemplo n.º 2
0
def test_gaussian_error():
    graph = OrderedDict()
    X_sym = add_datasets_to_graph([X], ["X"], graph)
    cost = gaussian_error(.5 * X_sym, (.5 * X_sym + .001) ** 2, X_sym)
    theano.function([X_sym], cost, mode="FAST_COMPILE")
Ejemplo n.º 3
0
def test_masked_cost():
    cost = gaussian_error(.5 * X_sym, .5 * X_sym, X_sym)
    masked = masked_cost(X_sym, y_sym)
    theano.function([X_sym, y_sym], [cost, masked], mode="FAST_COMPILE")
Ejemplo n.º 4
0
def test_gaussian_error():
    cost = gaussian_error(.5 * X_sym, (.5 * X_sym + .001) ** 2, X_sym)
    theano.function([X_sym], cost, mode="FAST_COMPILE")
Ejemplo n.º 5
0
def test_masked_cost():
    cost = gaussian_error(.5 * X_sym, .5 * X_sym, X_sym)
    masked = masked_cost(X_sym, y_sym)
    theano.function([X_sym, y_sym], [cost, masked], mode="FAST_COMPILE")
Ejemplo n.º 6
0
def test_gaussian_error():
    cost = gaussian_error(.5 * X_sym, (.5 * X_sym + .001)**2, X_sym)
    theano.function([X_sym], cost, mode="FAST_COMPILE")