{"action":"created","issue":{"url":"https://api.github.com/repos/cazala/synaptic/issues/78","repository_url":"https://api.github.com/repos/cazala/synaptic","labels_url":"https://api.github.com/repos/cazala/synaptic/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/cazala/synaptic/issues/78/comments","events_url":"https://api.github.com/repos/cazala/synaptic/issues/78/events","html_url":"https://github.com/cazala/synaptic/issues/78","id":141744658,"number":78,"title":"The creation of an optimized or an unoptimized network is not equivalent.","user":{"login":"lucasBertola","id":3074019,"avatar_url":"https://avatars.githubusercontent.com/u/3074019?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasBertola","html_url":"https://github.com/lucasBertola","followers_url":"https://api.github.com/users/lucasBertola/followers","following_url":"https://api.github.com/users/lucasBertola/following{/other_user}","gists_url":"https://api.github.com/users/lucasBertola/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasBertola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasBertola/subscriptions","organizations_url":"https://api.github.com/users/lucasBertola/orgs","repos_url":"https://api.github.com/users/lucasBertola/repos","events_url":"https://api.github.com/users/lucasBertola/events{/privacy}","received_events_url":"https://api.github.com/users/lucasBertola/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-18T00:49:59Z","updated_at":"2016-03-22T22:23:51Z","closed_at":null,"body":"Hi,\r\n\r\nThe creation of an optimized or an unoptimized network is not equivalent.\r\n\r\nFor example, if you run the test \"Optimized and Unoptimized Networks Equivalency\" with\r\n `var iterations = 10000;` , after a while we can see that the result is absolutely not equivalent. \r\nI think this is a serious problem and I tried to solve it but I had no success yet because I don't understand well enough the optimize system.\r\nMaybe someone has changed `Unoptimized system` without changing `Optimized system`.\r\nHave you any idea how to fix it ?\r\n\r\nThx"},"comment":{"url":"https://api.github.com/repos/cazala/synaptic/issues/comments/200059803","html_url":"https://github.com/cazala/synaptic/issues/78#issuecomment-200059803","issue_url":"https://api.github.com/repos/cazala/synaptic/issues/78","id":200059803,"user":{"login":"cazala","id":2781777,"avatar_url":"https://avatars.githubusercontent.com/u/2781777?v=3","gravatar_id":"","url":"https://api.github.com/users/cazala","html_url":"https://github.com/cazala","followers_url":"https://api.github.com/users/cazala/followers","following_url":"https://api.github.com/users/cazala/following{/other_user}","gists_url":"https://api.github.com/users/cazala/gists{/gist_id}","starred_url":"https://api.github.com/users/cazala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cazala/subscriptions","organizations_url":"https://api.github.com/users/cazala/orgs","repos_url":"https://api.github.com/users/cazala/repos","events_url":"https://api.github.com/users/cazala/events{/privacy}","received_events_url":"https://api.github.com/users/cazala/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T22:23:51Z","updated_at":"2016-03-22T22:23:51Z","body":"The thing is, since the optimized function uses a Float64Array, instead of Number objects, there might be tiny differences in the outputs due to truncation. You can check this by printing the substraction of the outputs, like you said. You will notice that most of the times they are 0, but sometimes they are very little like 1e-15. That amount of error is acceptable, but it will break your assertions if you make them like \"a - b != 0\""}}