-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Use random generator from C++11 instead of from Boost in module sample_consensus #2963
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
base: master
Are you sure you want to change the base?
Use random generator from C++11 instead of from Boost in module sample_consensus #2963
Conversation
SergioRAgostinho
left a comment
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.
I had a first look over it and it looks fine. To give a better feedback into the changes in the numerical values of the unit tests I need to actually dive into the problem, read into the actual model estimation process, plotting data, etc... Sunday at best :/
|
Here is a visualization of the cone data: The cone was "manually fitted", it's parameters are:
This matches the expected values in the test. For some reason, only three out of seven parameters are checked, so I'd say we should add checks for the rest as well. |
0f4dceb to
5accb66
Compare
|
I'm going to pick up everything related to random in the next days. Let's rebase this one and let it run. |
5accb66 to
22c5c1f
Compare
|
Despite the fact the unit tests are passing here, there at least 5 failing in my local environment when I checkout this branch. |
11bceda to
240b078
Compare
240b078 to
aff02a4
Compare
aff02a4 to
82f06e7
Compare
82f06e7 to
8ff1fb3
Compare
|
This pull request has been automatically marked as stale because it hasn't had Come back whenever you have time. We look forward to your contribution. |
|
This pull request has been automatically marked as stale because it hasn't had Come back whenever you have time. We look forward to your contribution. |
|
Marking this as stale due to 30 days of inactivity. Commenting or adding a new commit to the pull request will revert this. |
|
There's some cleanup in this PR compared to master. I'd prefer if someone could just get that separated and merged whenever they have the time. Regarding boost -> stdlib generator, as Morween pointed out, that might be the cause of difference in results. The generators API has been standardized, not their (input, output), so the same seed on different platforms can give different results with stdlib. In view of that, I'd recommend throwing away the work done/planned to remove boost generators. On the other hand, PRNG generators are standardized better, and boost PRNG can be replaced by stdlib PRNGs |
|
Marking this as stale due to 30 days of inactivity. Commenting or adding a new commit to the pull request will revert this. |
|
There is no boost::mt19937 anymore, replaced by std:mt19937. see the failing gh actions on macOS Ventura 13. |
|
|
Oh, I see. thanks |

Separation from #2956 due to the need to adapt tests.