Git Product home page Git Product logo

Comments (4)

cyrusmvahid avatar cyrusmvahid commented on May 22, 2024

Description:

I am trying to replicate the twit example with different estimators and compare the results.

wavenet_estimator = WaveNetEstimator(freq="5min", prediction_length=12, trainer=Trainer(epochs=EPOCHS))

I get the following result

---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-130-bea3fc1bb39e> in <module>()
----> 1 wavenet_estimator = WaveNetEstimator(freq="5min", prediction_length=12, trainer=Trainer(epochs=EPOCHS))

~/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/gluonts/core/component.py in init_wrapper(*args, **kwargs)
    395                 self.__class__.__repr__ = validated_repr
    396 
--> 397             return init(self, **all_args)
    398 
    399         # attach the Pydantic model as the attribute of the initializer wrapper

~/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/gluonts/model/wavenet/_estimator.py in __init__(self, freq, prediction_length, trainer, num_eval_samples, cardinality, embedding_dimension, num_bins, hybridize_prediction_net, n_residue, n_skip, dilation_depth, n_stacks, temperature, act_type)
    162 
    163         seasonality = _get_seasonality(
--> 164             self.freq, {'H': 7 * 24, 'D': 7, 'W': 52, 'M': 12, 'B': 7 * 5}
    165         )
    166         goal_receptive_length = max(seasonality, 2 * self.prediction_length)

~/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/gluonts/model/wavenet/_estimator.py in _get_seasonality(freq, seasonality_dict)
     87         else {'H': 7 * 24, 'D': 7, 'W': 52, 'M': 12, 'B': 7 * 5}
     88     )
---> 89     seasonality = sdict[base_freq]
     90     if seasonality % multiple != 0:
     91         logging.warning(

KeyError: 'min'

Environment

Amazon SageMaker - mxnet-py36
I have installed gluonts manually
Linux ip-172-16-8-18 4.14.121-85.96.amzn1.x86_64 #1 SMP Wed May 22 00:45:50 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
mx.version: '1.4.1'

from gluonts.

lostella avatar lostella commented on May 22, 2024

Looks like just adding the support 'min' to the keys might work -- however I'm not sure if 'min': 60 * 7 * 24 could create memory issues

cc @geoalgo ?

from gluonts.

geoalgo avatar geoalgo commented on May 22, 2024

I think it wont because the code has this safeguard:

goal_receptive_length = max(seasonality, 2 * self.prediction_length)

from gluonts.

lostella avatar lostella commented on May 22, 2024

Solved in #262

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.