-
Notifications
You must be signed in to change notification settings - Fork 16
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
Use crate random choice for selecting samples by fitness #7
Comments
Yes that would be great! I'm currently cleaning up stuff in the develop branch which will lead to v0.3. Including your crate should be quite simple, I'll let you know how it worked. |
Great! Maybe you can include performance tests; before and after. |
It turns out to be a bit more difficult than expected: darwin-rs uses lower values for the fitness where as random choice uses higher values for better fitness. I could pass |
Or you could modify the calculation of the fitness? What is the upper bound of the biggest value? let fitness_high = MAX_VALUE - fitness_low; |
Oh, sorry. You wrote the exact same thing. |
No problem ;-) |
Is there an interest to use the crate random choice in order to select samples by their fitness?
It should be with a runtime of O(n) faster than the existing solution which sorts the samples (O (n * log n))
https://github.com/StefanoD/Rust_Random_Choice
The text was updated successfully, but these errors were encountered: