Open happyle1004 opened 4 years ago
Has anyone resolved this yet? I am facing the same issue.
In the data.py file i changed line 217 from: self.original_y_min, self.original_y_max = y.min(), y.max()
to: self.original_y_min, self.original_y_max = np.min(y),np.max(y)
and it works for me
If anyone still needs help with this, I installed this branch:
pip install git+https://github.com/JakeColtman/bartpy.git@pytorch --upgrade
And the error no longer appeared.
Any chance of getting this fix @emc5ud into the master branch / release code? Cheers
If I use: model = SklearnModel() model.fit(X_train, y_train.to_numpy()) I got 'numpy.ndarray' object has no attribute 'normalizing_scale' this error message.
If I use: model = SklearnModel model.fit(X_train, y_train.to_numpy()) I got 'fit() missing 1 required positional argument: 'y'' this error message.
X_train is a pandas dataframe.