Skip to content

The finetune function of model LightGBM has an ERROR #2048

@zhaochaofeng

Description

@zhaochaofeng

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions