Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit e6f3b71

Browse files
committed
Change error message to conform to check_estimator in sklearn 0.19
1 parent 47ff95e commit e6f3b71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyearth/earth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def _scrub_x(self, X, missing, **kwargs):
421421
# Ensure correct number of columns
422422
if hasattr(self, 'basis_') and self.basis_ is not None:
423423
if X.shape[1] != self.basis_.num_variables:
424-
raise ValueError('Wrong number of columns in X')
424+
raise ValueError('Wrong number of columns in X. Reshape your data.')
425425

426426
# Zero-out any missing spots in X
427427
if np.any(missing):

0 commit comments

Comments
 (0)