-
-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding distributeParams #692
Conversation
HARK/core.py
Outdated
while j < len(self.agents): | ||
for n in range(replication_factor): | ||
self.agents[j](AgentCount = int(self.Population*param_dist[0][b]*self.TypeWeight[n])) | ||
exec('self.agents[j](' + param_name + '= param_dist[1][b])') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two lines, copied from what I assume is ancient cstwMPC code, scare me.
It hardly looks like valid Python to me.
I think also it's using [0] and [1] to access the distribution values, which I'll need to fix for sure.
This PR now does something a little different from the original method.
|
I need to look at this, but I like your description.
…On Fri, May 15, 2020 at 3:37 PM Sebastian Benthall ***@***.***> wrote:
@sbenthall <https://github.com/sbenthall> requested your review on: #692
<#692> adding distributeParams .
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#692 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADKRAFKGZOKSPYEY3YOMPPTRRWKZNANCNFSM4NBTIKBA>
.
|
This is on my task list to merge. |
See #669