Skip to content
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

what does the parameter cost_limit in lapjv mean? #32

Open
Bilibilee opened this issue Nov 6, 2021 · 2 comments
Open

what does the parameter cost_limit in lapjv mean? #32

Bilibilee opened this issue Nov 6, 2021 · 2 comments

Comments

@Bilibilee
Copy link

Bilibilee commented Nov 6, 2021

hello,I have no idea about parameter cost_limit in lapjv function.
It is considered as an upper limit for a cost of a single assignment.
Do you mean cost larger than the cost_limit will be clipped to the cost_limit edge.

cost, x, y = lap.lapjv(cost_matrix, extend_cost=True, cost_limit=thresh)

does it equal to

cost_matrix[cost_matrix > thresh] = thresh 
cost, x, y = lap.lapjv(cost_matrix, extend_cost=True)
@prapti1998
Copy link

@Bilibilee I also am unclear about this. Were you able to understand?

@mikel-brostrom
Copy link

Values larger than cost_limit are disregarded. Which means that there will be unmatched rows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants