diff --git a/pkg/suggestion/hyperband_service.go b/pkg/suggestion/hyperband_service.go index 778a2db14a6..cb8916aac4a 100644 --- a/pkg/suggestion/hyperband_service.go +++ b/pkg/suggestion/hyperband_service.go @@ -142,7 +142,7 @@ func (h *HyperBandSuggestService) makeChildBracket(ctx context.Context, c api.Ma child := Bracket{} if sconf.OptimizationType == api.OptimizationType_MINIMIZE { - child = parent[n:] + child = parent[len(parent) - n:] } else if sconf.OptimizationType == api.OptimizationType_MAXIMIZE { child = parent[:n] }