Code Monkey home page Code Monkey logo

Comments (6)

jaheba avatar jaheba commented on May 11, 2024

It appears that your dataset has no column with the name target, which is required.

from gluonts.

Hari-pyt avatar Hari-pyt commented on May 11, 2024

Thank you for reply jaheba,
It's obvious that my data don't have the name target.

Before applying the transformation my data have target but after applying the transformation it's getting splitted into past_target and future target which corresponds to context and prediction length

from gluonts.

lostella avatar lostella commented on May 11, 2024

@hari7696 when you call estimator.train, the estimator-specific transformation is applied internally: there is no need to apply the transformation by hand.

What happens in your example is that you apply a transformation outside, the "target" field gets split into "past_target"/"future_target" and disappears, and this transformed data is once again passed through a transformation inside the call to estimator.train, which expects "target" to be there.

from gluonts.

Hari-pyt avatar Hari-pyt commented on May 11, 2024

@lostella
Hi Lostella
Thanks for the reply
This is the estimator I am using
estimator = DeepAREstimator(freq="4H",context_length = 48, prediction_length=24, distr_output = gluonts.distribution.GaussianOutput(), trainer=Trainer(epochs=50))
As you said the estimator specific tranformation will be applied to the data.
But I cant find any arguments except time_features related to transformer in DeepAREstimator
refered doc link : http://gluon-ts-staging.s3-accelerate.dualstack.amazonaws.com/PR-93/1/api/gluonts/gluonts.model.deepar.html

can you give me some info on customizing the estimator specific transformer, I would like to add observed_features, age, is_pad and time_features to my data.

Thanks

from gluonts.

lostella avatar lostella commented on May 11, 2024

@hari7696 those features are automatically added by the transformation. In your example above, just do

predictor = estimator.train(train_ds)

without applying any transformation by hand to your data.

We will look into improving the documentation on how to correctly use estimators.

from gluonts.

Hari-pyt avatar Hari-pyt commented on May 11, 2024

Got a picture after looking into source code of DeepAREstimator().

Thank you

from gluonts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.