bartpy icon indicating copy to clipboard operation
bartpy copied to clipboard

Tuple index out of range

Open haow85 opened this issue 4 years ago • 1 comments

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 avatar Aug 13 '20 04:08 haow85

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

haow85 avatar Aug 13 '20 04:08 haow85