This commit is contained in:
Dr. Kashif Rasul
2020-03-10 13:57:54 +01:00
parent 7cfe8c73f0
commit 419fb89ffb
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -121,12 +121,9 @@ class NBEATSEstimator(PTSEstimator):
else:
return new_value
# here we do only a simple operation to convert the input data to a form
# Here we do only a simple operation to convert the input data to a form
# that can be digested by our model by only splitting the target in two, a
# conditioning part and a to-predict part, for each training example.
# for a more complex transformation example, see the `gluonts.model.deepar`
# transformation that includes time features, age feature, observed values
# indicator, ...
def create_transformation(self) -> Transformation:
return Chain(
[
+1 -1
View File
@@ -210,7 +210,7 @@ class NBEATSNetwork(nn.Module):
self.prediction_length = prediction_length
self.context_length = context_length
self.net_blocks: nn.ModuleList[NBEATSBlock] = nn.ModuleList()
self.net_blocks = nn.ModuleList()
for stack_id in range(num_stacks):
for block_id in range(num_blocks[stack_id]):
if self.stack_types[stack_id] == "G":