-
Notifications
You must be signed in to change notification settings - Fork 29
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
LAPJV is not giving the correct result. #83
Comments
Hi @mayejudi
|
Thank you for your prompt answer. for (int i = 0; i < dim; i++){
j = rowsol[i]; instead of for (int k = 0; k < dim; k++){
i = rowsol[k];
j= colsol[k]; That is why the assignment comes X to X |
I did the same modifications suggested in this repo to the C code, I did not touch the functions related to AVX2. Also I did not touched the python code. The results did not change value. So, it might be that the compiler is saying is doing AVX2 and things do not go well with the results on those calls. The modification were more related in the order of things are calculated. I leave my modifications here in case someone else want to pay with this.lapjv-corrected.zip |
For future reference, the results of scipy's LSA and of this repo's output have different formatting (see gatagat/lap#10 for reference).
|
@mayejudi @CSautier Please be careful when call the funciton lap, the second args assign_cost should be 1- dimensional array |
I followed the instructions and installed the package using
pip3 install lapjv
. However, when I test it with a simple matrix, the results are incorrect. I compared the results with scipy linear_sum_assignment.I get
I also took the cpp code in the repo created a main. The project is here lapjv-cpp.zip and run the same squared matrix and I get this
Something is up with this code. I would appreciate any help with it. Am I missing something?
The text was updated successfully, but these errors were encountered: