-
Notifications
You must be signed in to change notification settings - Fork 44
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
breedthreads = auto
causes individuals getting lost, and few exceptions
#77
Comments
There are two bugs. What you see is a race condition. Fixing that revealed an underlying architectural issue with GroupedProblemForm which I have to think about, but in the meantime I've patched it with a hack.
Grab the following files from the repository and you should be good to go.
M src/main/java/ec/breed/BufferedBreedingPipeline.java
M src/main/java/ec/simple/SimpleEvaluator.java
Sean
… On May 23, 2021, at 8:20 AM, Zvika ***@***.***> wrote:
Hi.
When I add breedthreads = auto, I see that some individuals are getting lost, and there are few exceptions. (evalthreads = auto is working well).
I've encountered this issue before, in a larger project; but it also appears in the small sample project that I've just created: https://github.com/ZvikaZ/ECJ-sample (see #76). Just run it, and it shortly fails. You can comment the breedthreads = auto in the params file, and see that everything is fine.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Indeed, it seems to solve the problem. Thanks for the quick fix. BTW, it'd be nice to add this scenario to the tests, to avoid similar bug in the future. |
BTW, it'd be nice to add this scenario to the tests, to avoid similar bug
in the future.
Agreed! Your sample project should give us enough detail to create a
test. Is it as simple as setting `breedthreads = auto` and watching the
population size for a few generations?
Thanks,
Siggy
…On Mon, May 24, 2021 at 4:31 AM Zvika ***@***.***> wrote:
Indeed, it seems to solve the problem. Thanks for the quick fix.
I got a lot of Yo mama prints, but as far as I understand the code that
issues them, it should be harmless. Right?
BTW, it'd be nice to add this scenario to the tests, to avoid similar bug
in the future.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#77 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACMOQQJW6E3LXPJCJMH4HLTPIFENANCNFSM45LVA5EA>
.
--
——
Eric "Siggy" Scott *|* MITRE
Senior Artificial Intelligence Engineer, MITRE Labs AI & Autonomous Systems
Dept.
Doctoral Candidate, George Mason University
http://mason.gmu.edu/~escott8/
|
Yeah.
Also note, that now my sample project doesn't fail, as it's using a .jar that I've compiled with the fixes suggested in this thread. |
Hi. Thanks |
Great. I didn't get an answer for my 2 PRs since May (and I have reminded in #79 few days ago), so I was afraid that the project has gone sleeping :-) We're all busy, it's OK. I didn't want to be a nudge, so I hesitated with this. It's a little bit related, since I'm working with a local version with those 2 PRs integrated. Thus, if you think that they will be reviewed soon, I prefer to report the details of the issue after that, so we will have the same version. Otherwise, I will run with the official |
I've decided that the hack is in fact probably good enough for long-term. I modified it slightly (hope I didn't break anything) and have committed it with a bit of documentation as well. Reopen the issue if things aren't working right. |
Hi.
When I add
breedthreads = auto
, I see that some individuals are getting lost, and there are few exceptions. (evalthreads = auto
is working well).I've encountered this issue before, in a larger project; but it also appears in the small sample project that I've just created: https://github.com/ZvikaZ/ECJ-sample (see #76). Just run it, and it shortly fails. You can comment the
breedthreads = auto
in theparams
file, and see that everything is fine.BTW,
I have encountered this on two different machines, running Linux and Windows.
The text was updated successfully, but these errors were encountered: