You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 6, 2021. It is now read-only.
I tested the simplest call of ensemble_train and got a ValueError for the parameter min_samples_split:
Traceback (most recent call last):
File "pyensemble/ensemble_train.py", line 202, in
ens.fit(X_train, y_train)
File "/home/mourao/income_prediction/pyensemble/ensemble.py", line 290, in fit
self.fit_models(X, y)
File "/home/mourao/income_prediction/pyensemble/ensemble.py", line 325, in fit_models
model.fit(X[train_inds], y[train_inds])
File "/usr/local/lib/python2.7/dist-packages/sklearn/tree/tree.py", line 790, in fit
X_idx_sorted=X_idx_sorted)
File "/usr/local/lib/python2.7/dist-packages/sklearn/tree/tree.py", line 194, in fit
% self.min_samples_split)
ValueError: min_samples_split must be an integer greater than 1 or a float in (0.0, 1.0]; got the integer 1
I solved the problem removing 1 from the list in the file model_library.py:
Hi:
I tested the simplest call of ensemble_train and got a ValueError for the parameter min_samples_split:
I solved the problem removing 1 from the list in the file model_library.py:
The text was updated successfully, but these errors were encountered: