Comments (4)
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.
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.
I think it wont because the code has this safeguard:
goal_receptive_length = max(seasonality, 2 * self.prediction_length)
from gluonts.
Solved in #262
from gluonts.
Related Issues (20)
- The simple example runs to completion, but does not output a plot HOT 1
- `TypeError: list indices must be integers or slices, not tuple` when using `DummyValueImputation` HOT 1
- AssertionError when reproduction of Dlinear model HOT 18
- best way for non-periodicity data? HOT 5
- Update dependencies HOT 2
- Dependency clashes (in kaggle) HOT 1
- Convert ListDataset to Multivariate dataset with gluonts.dataset.multivariate_grouper HOT 2
- Only a single validation batch is used if `estimator.train` called with `cache_data=True` HOT 3
- GluonTSDataError: Input for field "target" does not have the requireddimension (field: target, ndim observed: 2, expected ndim: 1) HOT 5
- Which datasets provided in the library are multivariate? HOT 1
- GPVAREstimator - AssertionError: HOT 3
- Numerical overflow in StdScaler HOT 1
- Training is extremely slow on Gluonts [Torch] HOT 1
- Unify QuantileOutput and DistributionOutput
- Unify the design of seq2seq PyTorch models
- Add support for all covariate types to all PyTorch models
- Change of behaviour from lightning logger HOT 2
- BUG No module named 'gluonts.torch.model.i_transformer' HOT 1
- The annotation of the parameter device of PyTorchPredictor is incomplete HOT 2
- Dataframe index is not uniformly spaced. If your dataframe contains data from multiple series in the same column ("long" format), consider constructing the dataset with `PandasDataset.from_long_dataframe` instead. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gluonts.