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
-
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
![Screenshot 2022-11-17 at 19 08 19](https://user-images.githubusercontent.com/663798/202524139-d89694a3-09fc-4a28-89c2-6eb5a3800830.png)
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