-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model crashes for very small data #103
Comments
Hi @Alaya-in-Matrix, what is the version of numpy installed. |
@xuyxu It's numpy 1.19.5
|
The regression demo works fine with your package environment: from sklearn.datasets import load_boston
from sklearn.model_selection import train_test_split
from sklearn.metrics import mean_squared_error
from deepforest import CascadeForestRegressor
X, y = load_boston(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=1)
model = CascadeForestRegressor(random_state=1)
model.fit(X_train, y_train)
y_pred = model.predict(X_test)
mse = mean_squared_error(y_test, y_pred)
print("\nTesting MSE: {:.3f}".format(mse)) In addition, the |
@xuyxu That's exactly what I'm reporting, why would DF work for |
Closed via #14 |
When experimenting the DF model with toy dataset, I found that the model fitting crashes when the training size is very small, the below code can be used to reproduce this bug
Below is the error message;
The text was updated successfully, but these errors were encountered: