gluonts icon indicating copy to clipboard operation
gluonts copied to clipboard

Add past_feat_dynamic_real to MetaData

Open jmberutich opened this issue 2 years ago • 1 comments

Would be great if we can also include past_feat_dynamic_real to the dataset MetaData, so it can be used downstream in TFT.

Change should be quite simple by simply adding one line to the dataset MetaData class in common.py:

class MetaData(pydantic.BaseModel):
    freq: str = pydantic.Field(..., alias="time_granularity")  # type: ignore
    target: Optional[BasicFeatureInfo] = None

    feat_static_cat: List[CategoricalFeatureInfo] = []
    feat_static_real: List[BasicFeatureInfo] = []
    feat_dynamic_real: List[BasicFeatureInfo] = []
    past_feat_dynamic_real: List[BasicFeatureInfo] = []
    feat_dynamic_cat: List[CategoricalFeatureInfo] = []

    prediction_length: Optional[int] = None

jmberutich avatar Oct 28 '22 09:10 jmberutich

Hey @jmberutich ,I would like to work on this issue .please assign it to me.

ayushthe1 avatar Oct 29 '22 08:10 ayushthe1