BPt.p.Scalar.to_grid#

Scalar.to_grid()[source]#

This method will attempt to convert from the current BPt / nevergrad style parameter to a sklearn-grid search compatible one.

Since the base value is a scaler, a lower and upper bound must be set, and also this Scaler param must have been cast to an integer first.