(candidates)
| 520 | return _make_candidate_sets_symmetric(augmented, candidate_size, distance_matrix = distance_matrix) |
| 521 | |
| 522 | def _candidate_array(candidates): |
| 523 | max_len = max(len(row) for row in candidates) |
| 524 | arr = -np.ones((len(candidates), max_len), dtype = np.int64) |
| 525 | for i, row in enumerate(candidates): |
| 526 | arr[i, :len(row)] = np.array(row, dtype = np.int64) |
| 527 | return arr |
| 528 | |
| 529 | ############################################################################ |
| 530 | # INITIAL SOLUTIONS |
no outgoing calls
no test coverage detected