Open hdinh opened 5 years ago
@hdinh Thanks for reporting this. This should be an easy enough fix, but I won't have time to make it for a while. If you're interested, I would welcome a pull request and would have time to review and offer feedback. Also, I'm curious what the use case is for fitting the same model on new data. I'm probably missing something here, but wouldn't it make more sense to just create a new model?
Getting
ValueError: Wrong number of columns in X. Reshape your data.
exception if Earth is fitted multiple times if the number of features of X changes. From a usability standpoint, this seems weird because this doesn't seem to be consistent with other sklearn estimators.As a user, I would expect the classifier to ignore the past
basis_
value and refit at each fit call.