JakeColtman / bartpy

Bayesian Additive Regression Trees For Python
https://jakecoltman.github.io/bartpy/
MIT License
219 stars 44 forks source link

Tuple index out of range #52

Open haow85 opened 4 years ago

haow85 commented 4 years ago

I am using BarPy on Ubuntu with Python 3.7.3. I tried the following code snippet:

model = SklearnModel() model.fit(np.array([1.0, 0.2, 3.0, 4.0]), np.array([1, 0, 0, 1]))

I got a "tuple index out of range" error.

Does anyone know how to fix this error ?

haow85 commented 4 years ago

I know how to fix this now, the X dimension should be at least 2.