Bug description
If order_by_id is True and start_indices is set it may cause an IndexError. E.g.:
line 133, in waterfall
if fvals_raw_is_finite[start_index]:
IndexError: index 85 is out of bounds for axis 0 with size 10
Here, there were 100 starts overall, but start_indices was set to 10.
The issue is that the best 10 starts are selected for each results before the ordering.
Expected behavior
I think it would make sense if results were ordered first and then starts were selected according to specified start_indices.
To reproduce
Should be reproducible with two results that have different start order when sorted by fval.
Bug description If
order_by_id
is True andstart_indices
is set it may cause an IndexError. E.g.:Here, there were 100 starts overall, but
start_indices
was set to 10. The issue is that the best 10 starts are selected for each results before the ordering.Expected behavior I think it would make sense if results were ordered first and then starts were selected according to specified
start_indices
.To reproduce Should be reproducible with two results that have different start order when sorted by fval.
Environment
pypesto
version: 0.4.2