Artificial dataset recipes with shape
specified still requires length in evaluate
#2444
emptymalei
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
gluonts/src/gluonts/dataset/artificial/recipe.py
Lines 908 to 924 in cac5e6b
For example, I create a variable
rcp.RandomUniform(low=0, high=3, shape=(1,))
and I would like to evaluate it, I use the following codeHere the second argument,
length
is not needed to evaluate this random variable, however,evaluate
requires thislength
argument.Similarly, if we simply call this
While the two arguments are required, it seems that none of the two required arguments is useful here.
This seems to be a consistent behavior of expand_shape

I am wondering if there is a different way to evaluate such variables. It is a bit confusing to have required arguments that is not used at all.
Beta Was this translation helpful? Give feedback.
All reactions