mirror of
https://github.com/wassname/pytorch-ts.git
synced 2026-07-19 11:27:25 +08:00
no need for input_size its always 1
This commit is contained in:
@@ -77,7 +77,6 @@ class SimpleFeedForwardEstimator(PTSEstimator):
|
||||
self,
|
||||
freq: str,
|
||||
prediction_length: int,
|
||||
input_size: int,
|
||||
trainer: Trainer = Trainer(),
|
||||
num_hidden_dimensions: Optional[List[int]] = None,
|
||||
context_length: Optional[int] = None,
|
||||
@@ -96,7 +95,6 @@ class SimpleFeedForwardEstimator(PTSEstimator):
|
||||
if num_hidden_dimensions is not None
|
||||
else list([40, 40])
|
||||
)
|
||||
self.input_size = input_size
|
||||
self.prediction_length = prediction_length
|
||||
self.context_length = (
|
||||
context_length if context_length is not None else prediction_length
|
||||
@@ -136,7 +134,6 @@ class SimpleFeedForwardEstimator(PTSEstimator):
|
||||
self, device: torch.device
|
||||
) -> SimpleFeedForwardTrainingNetwork:
|
||||
return SimpleFeedForwardTrainingNetwork(
|
||||
input_size=self.input_size,
|
||||
num_hidden_dimensions=self.num_hidden_dimensions,
|
||||
prediction_length=self.prediction_length,
|
||||
context_length=self.context_length,
|
||||
@@ -154,7 +151,6 @@ class SimpleFeedForwardEstimator(PTSEstimator):
|
||||
device: torch.device,
|
||||
) -> PTSPredictor:
|
||||
prediction_network = SimpleFeedForwardPredictionNetwork(
|
||||
input_size=self.input_size,
|
||||
num_hidden_dimensions=self.num_hidden_dimensions,
|
||||
prediction_length=self.prediction_length,
|
||||
context_length=self.context_length,
|
||||
|
||||
@@ -38,7 +38,6 @@ class SimpleFeedForwardNetworkBase(nn.Module):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
input_size: int,
|
||||
num_hidden_dimensions: List[int],
|
||||
prediction_length: int,
|
||||
context_length: int,
|
||||
@@ -48,7 +47,6 @@ class SimpleFeedForwardNetworkBase(nn.Module):
|
||||
) -> None:
|
||||
super().__init__()
|
||||
|
||||
self.input_size = input_size
|
||||
self.num_hidden_dimensions = num_hidden_dimensions
|
||||
self.prediction_length = prediction_length
|
||||
self.context_length = context_length
|
||||
|
||||
Reference in New Issue
Block a user