Traceback (most recent call last):
File "challenge.py", line 187, in
weights = kliep.predict(X)
File "challenge.py", line 180, in predict
return np.dot(self._phi(X, sigma=sigma), self._alpha).reshape((X.shape[0],))
File "challenge.py", line 150, in _phi
sigma = self._sigma
AttributeError: DensityRatioEstimator instance has no attribute '_sigma'
Traceback (most recent call last):
File "challenge.py", line 187, in
weights = kliep.predict(X)
File "challenge.py", line 180, in predict
return np.dot(self._phi(X, sigma=sigma), self._alpha).reshape((X.shape[0],))
File "challenge.py", line 150, in _phi
sigma = self._sigma
AttributeError: DensityRatioEstimator instance has no attribute '_sigma'