From 0fc1aa731e26683d21ed1a91f56d047d1682fd7e Mon Sep 17 00:00:00 2001 From: Thibaut Horel Date: Wed, 2 Dec 2015 16:30:37 -0500 Subject: Fix errors computation --- simulation/mle_blocks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'simulation/mle_blocks.py') diff --git a/simulation/mle_blocks.py b/simulation/mle_blocks.py index 98bc257..1b1cf4d 100644 --- a/simulation/mle_blocks.py +++ b/simulation/mle_blocks.py @@ -32,14 +32,14 @@ if __name__ == "__main__": batch_size = 100 #n_obs = 100000 freq = 10 - graph = utils.create_wheel(1000) + graph = utils.create_wheel(100) print('GRAPH:\n', graph, '\n-------------\n') g_shared = theano.shared(value=graph, name='graph') x, s, params, cost = create_mle_model(graph) rmse = ub.rmse_error(g_shared, params) - error = ub.relative_error(g_shared, params) + error = ub.absolute_error(g_shared, params) alg = algorithms.GradientDescent( cost=-cost, parameters=[params], step_rule=algorithms.AdaDelta() -- cgit v1.2.3-70-g09d2