Skip to content

[Core] CV fails when df is not provided  #800

@jmoralez

Description

@jmoralez

What happened + What you expected to happen

This line

fcsts_df = fcsts_df.merge(df, how="left", on=["unique_id", "ds"])

tries to merge with df, which can be None, so in that case it fails.

Originally reported here

Versions / Dependencies

1.6.4

Reproduction script

model = NeuralForecast(
                [AutoNBEATS(**model_args)],
                freq='D',
            )
model.fit(df=data, val_size=horizon)
crossvalidation_df = model.cross_validation()

Issue Severity

Low: It annoys or frustrates me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions