Closed lorrp1 closed 4 years ago
@lorrp1 so the issue is I think you need to have a multivariate dataset for the multivariate methods, i.e. the target
has to be a 2-dim array of time and variates with the one-dim flag set to False
...
Also note that normalizing flows work best when you have high dim multivariate time series and not just 2 as in your case...
but is not this already a multivariate dataset? @kashif
training_data1 = ListDataset(
[{"start":pd.Timestamp(2017, 1, 1, 12) , "target":df.AAPL[:train]},
{"start":pd.Timestamp(2017, 1, 1, 12) , "target":df.AMZN[:train]}
],
one_dim_target=False,
freq = "min"
)
i cant find example with this kind of data (using multivariate from csv) either here or gluons, all the example use -pre made dataset with metadata unlike im trying here. i have tried with 5 variates but the result is the same.
so @lorrp1 you want in your example above a single time series with "target": np.stack( APP , AMZN )
if that makes sense... which is what the mutivariate grouper is doing...
what you have above is essentially two univariate time series...
Hello, im trying to use the dataset here https://github.com/smallGum/MLCNN-Multivariate-Time-Series/blob/master/data/nasdaq100_padding.csv to train TransformerTempFlowEstimator but i keep getting error related to the target_dim, here im using only 2 columns:
im getting errors like:
RuntimeError: Sizes of tensors must match except in dimension 0. Got 20 and 10 (The offending index is 0)
(which usually works by changing target_dim but then i get:) and:RuntimeError: shape '[-1, 30, 3]' is invalid for input of size 600