Skip to content
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

ValueError: at least one array or dtype is required #21

Open
avglinsky opened this issue Jul 11, 2020 · 2 comments
Open

ValueError: at least one array or dtype is required #21

avglinsky opened this issue Jul 11, 2020 · 2 comments

Comments

@avglinsky
Copy link

Hi, guys! Thank you very much for such a good code!!! I'm running some models for water quality prediction, trying to make an ensemble of some models. However, I bumped into this error. Any assistance with this error is highly appreciated.

Building LightGBM Ensemble from TS data (ensemble_lgb)
Building LightGBM Ensemble from PCA reduced TSFresh Features (ensemble_ts). This can take a long time.
LightGBM ensemble have been successfully built
1328 variables are found to be almost constant

ValueError Traceback (most recent call last)
in ()
----> 1 all_ensemble_in, all_ensemble_out, all_performance = am.ensemble(forecast_in, forecast_out)
2 all_ensemble_in[["Target","ensemble_lgb__X__HWAMS","HWAMS","HWAAS"]].plot()
3 all_ensemble_out[["ensemble_lgb__X__HWAMS","HWAMS","HWAAS"]].plot()
4 am.models_dict_in
5 am.models_dict_out

4 frames
/usr/local/lib/python3.6/dist-packages/sklearn/utils/validation.py in check_array(array, accept_sparse, accept_large_sparse, dtype, order, copy, force_all_finite, ensure_2d, allow_nd, ensure_min_samples, ensure_min_features, warn_on_dtype, estimator)
473
474 if all(isinstance(dtype, np.dtype) for dtype in dtypes_orig):
--> 475 dtype_orig = np.result_type(*dtypes_orig)
476
477 if dtype_numeric:

<array_function internals> in result_type(*args, **kwargs)

ValueError: at least one array or dtype is required

@JoseDGarcia
Copy link

Same

@Paposss
Copy link

Paposss commented Nov 29, 2020

same same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants