aboutsummaryrefslogtreecommitdiffstats
path: root/simulation/mle_blocks.py
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2015-12-02 16:30:37 -0500
committerThibaut Horel <thibaut.horel@gmail.com>2015-12-02 16:30:37 -0500
commit0fc1aa731e26683d21ed1a91f56d047d1682fd7e (patch)
treec80ad05a80b8aab39f917495ce5aeb2e01ea5dad /simulation/mle_blocks.py
parent0e90119296f6bbbaf28fbaa329556d6d9cd86f3f (diff)
downloadcascades-0fc1aa731e26683d21ed1a91f56d047d1682fd7e.tar.gz
Fix errors computation
Diffstat (limited to 'simulation/mle_blocks.py')
-rw-r--r--simulation/mle_blocks.py4
1 files changed, 2 insertions, 2 deletions
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()