Skip to content

Commit e1eee37

Browse files
committed
coerce float in exp
1 parent f6c997e commit e1eee37

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/hyperactive/base/_experiment.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Base class for experiment."""
22

3+
import numpy as np
34
from skbase.base import BaseObject
45

56

@@ -64,7 +65,9 @@ def score(self, params):
6465
paramnames = self.paramnames()
6566
if not set(params.keys()) <= set(paramnames):
6667
raise ValueError("Parameters do not match.")
67-
return self._score(params)
68+
res, metadata = self._score(params)
69+
res = np.float64(res)
70+
return res, metadata
6871

6972
def _score(self, params):
7073
"""Score the parameters.

0 commit comments

Comments
 (0)