{"action":"created","issue":{"url":"https://api.github.com/repos/nengo/nengo/issues/1058","repository_url":"https://api.github.com/repos/nengo/nengo","labels_url":"https://api.github.com/repos/nengo/nengo/issues/1058/labels{/name}","comments_url":"https://api.github.com/repos/nengo/nengo/issues/1058/comments","events_url":"https://api.github.com/repos/nengo/nengo/issues/1058/events","html_url":"https://github.com/nengo/nengo/issues/1058","id":153538773,"number":1058,"title":"Place for common configs","user":{"login":"jgosmann","id":850157,"avatar_url":"https://avatars.githubusercontent.com/u/850157?v=3","gravatar_id":"","url":"https://api.github.com/users/jgosmann","html_url":"https://github.com/jgosmann","followers_url":"https://api.github.com/users/jgosmann/followers","following_url":"https://api.github.com/users/jgosmann/following{/other_user}","gists_url":"https://api.github.com/users/jgosmann/gists{/gist_id}","starred_url":"https://api.github.com/users/jgosmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgosmann/subscriptions","organizations_url":"https://api.github.com/users/jgosmann/orgs","repos_url":"https://api.github.com/users/jgosmann/repos","events_url":"https://api.github.com/users/jgosmann/events{/privacy}","received_events_url":"https://api.github.com/users/jgosmann/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nengo/nengo/labels/feature%20request","name":"feature request","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-05-06T21:09:47Z","updated_at":"2016-10-18T20:51:39Z","closed_at":"2016-10-18T20:51:39Z","body":"I repeatedly run across situations where I want to create thresholding ensembles and it would be nice to sort of have a network for that. But it is not really a network, but only a set of config options set on the ensemble. So I was wondering if we should have a place for functions that create such configs?\r\n\r\nNot sure if there are other common sets of configuration options that get used?\r\n\r\nIn the thresholding case it would look somewhat like this:\r\n```python\r\ndef ThresholdingConfig(threshold):\r\n    config = nengo.Config(nengo.Ensemble)\r\n    config[nengo.Ensemble].dimensions = 1\r\n    config[nengo.Ensemble].intercepts = nengo.dists.Exponential(0.15, threshold, 1.)\r\n    config[nengo.Ensemble].encoders = nengo.dists.Choice([[1]])\r\n    config[nengo.Ensemble].eval_points = nengo.dists.Uniform(threshold, 1.)\r\n    return config\r\n```\r\nand be used like this\r\n```python\r\nwith ThresholdingConfig(0.3):\r\n    threshold = nengo.Ensemble(50)  # might be better to give dimensions explicitely?\r\n```"},"comment":{"url":"https://api.github.com/repos/nengo/nengo/issues/comments/254635724","html_url":"https://github.com/nengo/nengo/issues/1058#issuecomment-254635724","issue_url":"https://api.github.com/repos/nengo/nengo/issues/1058","id":254635724,"user":{"login":"tbekolay","id":203709,"avatar_url":"https://avatars.githubusercontent.com/u/203709?v=3","gravatar_id":"","url":"https://api.github.com/users/tbekolay","html_url":"https://github.com/tbekolay","followers_url":"https://api.github.com/users/tbekolay/followers","following_url":"https://api.github.com/users/tbekolay/following{/other_user}","gists_url":"https://api.github.com/users/tbekolay/gists{/gist_id}","starred_url":"https://api.github.com/users/tbekolay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbekolay/subscriptions","organizations_url":"https://api.github.com/users/tbekolay/orgs","repos_url":"https://api.github.com/users/tbekolay/repos","events_url":"https://api.github.com/users/tbekolay/events{/privacy}","received_events_url":"https://api.github.com/users/tbekolay/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T20:51:39Z","updated_at":"2016-10-18T20:51:39Z","body":"#1077 was merged, so this has been done!"}}
{"actor":{"display_login":"tbekolay"}}