We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69e33a1 commit 649a422Copy full SHA for 649a422
slise/slise.py
@@ -268,6 +268,9 @@ def fit(
268
if len(X.shape) == 1:
269
X.shape = X.shape + (1,)
270
assert X.shape[0] == Y.shape[0], "X and Y must have the same number of items!"
271
+ if len(Y.shape) > 1:
272
+ Y = Y.ravel()
273
+ assert X.shape[0] == Y.shape[0], "Y cannot have multiple columns!"
274
self._X = X
275
self._Y = Y
276
if weight is None:
@@ -624,6 +627,9 @@ def __init__(
624
627
625
628
626
629
assert X.shape[0] == Y.shape[0], "X and Y must have the same number of items"
630
631
632
633
self._logit = logit
634
self._normalise = normalise
635
0 commit comments