Description
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