Closed JohnPekl closed 3 years ago
I can only get row and column index from this statement rids, cids = solve_dense(costs). How can I get the cost for these output row and column indexes?
rids, cids = solve_dense(costs).
I think the cost can be obtained by
`sum=0 for i in rids: sum = sum+costs[i, cids [i]]`
That will work. The canonical technique is costs[rids, cids].sum()
costs[rids, cids].sum()
I can only get row and column index from this statement
rids, cids = solve_dense(costs).
How can I get the cost for these output row and column indexes?I think the cost can be obtained by