Script: /qlib/contrib/model/gbdt.py
Code:
dtrain, _ = self._prepare_data(dataset, reweighter) # pylint: disable=W0632
if dtrain.empty:
raise ValueError("Empty data from dataset, please check your dataset config.")
Problem:
The _prepare_data function returns a list, but a list does not have the attribute empty.
Running Error:
if dtrain.empty:
AttributeError: 'tuple' object has no attribute 'empty'