sktime / sktime/pytorch-forecasting

model.predict() should not require presence of "target"

Open
#960 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5k
Forks
912
Avg merge
3d 13h
Merged PRs (30d)
12

Description

When I try to do model.predict(df) and df does not contain the target, I get an error.
In predict mode, it shouldn't care if the "target" is present or not, so it's unclear if I'm doing something wrong, or if it's expected behavior.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing model.predict(df) with a dataframe that omits target, then trace the validation path that raises the error. Done means prediction accepts target-free input while preserving existing behavior when target is present, with a regression test covering the target-free case.

Written by the indexing model from the issue text.

Assessment

Tech stack
pandas, python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.