Skip to content

How to get label when the dataset is TSDatasetH? #1051

@LUS8806

Description

@LUS8806

Hi,
I'm trying to get the label data from the dataset when the dataset is TSDatasetH.

When I do using these codes:

label_df = dataset.prepare("test", col_set="label")

It returns a qlib.data.dataset.TSDataSampler.

I need a dataframe. How can I get label dataframe when the dataset is TSDatasetH?

Thx,

Song

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedstale

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions