fix bug when scipy_optimizer has no free parameters
@@ -112,6 +112,7 @@ class BaseOptimizer(object):
pmf : np.array
full pmf
"""
+ if self._free:
self._pmf[self._free] = x
return self._pmf
@@ -304,6 +305,9 @@ class BaseOptimizer(object):
if x is None:
x = self._optima.copy()
+ print(self._free)
+ print(x)
+
pmf = self._expand(x)
pmf[pmf < cutoff] = 0
