Fix np.bool_ not outputting correctly
This commit is contained in:
parent
e034f11dcc
commit
b25ad68c44
@ -25,6 +25,9 @@ NON_OPT_PARAM_APPENDIX = " # value loaded from strategy"
|
|||||||
def hyperopt_serializer(x):
|
def hyperopt_serializer(x):
|
||||||
if isinstance(x, np.integer):
|
if isinstance(x, np.integer):
|
||||||
return int(x)
|
return int(x)
|
||||||
|
if isinstance(x, np.bool_):
|
||||||
|
return bool(x)
|
||||||
|
|
||||||
return str(x)
|
return str(x)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user