Skip to content

Commit

Permalink
fix slice range (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
ytetra authored and k8s-ci-robot committed Oct 28, 2018
1 parent 13373d2 commit 7eeea12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/suggestion/hyperband_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
Expand Down

0 comments on commit 7eeea12

Please sign in to comment.