diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2015-12-02 16:30:37 -0500 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2015-12-02 16:30:37 -0500 |
| commit | 0fc1aa731e26683d21ed1a91f56d047d1682fd7e (patch) | |
| tree | c80ad05a80b8aab39f917495ce5aeb2e01ea5dad /simulation/mle_blocks.py | |
| parent | 0e90119296f6bbbaf28fbaa329556d6d9cd86f3f (diff) | |
| download | cascades-0fc1aa731e26683d21ed1a91f56d047d1682fd7e.tar.gz | |
Fix errors computation
Diffstat (limited to 'simulation/mle_blocks.py')
| -rw-r--r-- | simulation/mle_blocks.py | 4 |
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() |
