Skip to content

Commit

Permalink
[stocks] update model input_size
Browse files Browse the repository at this point in the history
  • Loading branch information
aviaIguazio committed Jan 15, 2024
1 parent a7e7870 commit 1c02ae8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stocks-prediction/src/train_stocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def handler(vector_name='stocks',
dataset = StocksDataset(vector_name, seq_size, start_time, end_time)
training_set = DataLoader(dataset=dataset, batch_size=batch_size, shuffle=True, drop_last=True)
input_size = dataset.data[0][0].shape[0]
context.logger.info("input size {}".format(input_size))
output_size = 1
# creating the model
model = Model(input_size=input_size, output_size=output_size, hidden_dim=hidden_dim, n_layers=n_layers,
Expand Down

0 comments on commit 1c02ae8

Please sign in to comment.