Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Commit

Permalink
[#98] don't pass weights to fit call
Browse files Browse the repository at this point in the history
  • Loading branch information
jsadler2 committed Jun 4, 2021
1 parent 0f568ae commit 6cd7b52
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions river_dl/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ def train_model(
# use built in 'fit' method unless model is grad correction
x_trn_pre = io_data["x_trn"]
# combine with weights to pass to loss function
y_trn_pre = np.concatenate(
[io_data["y_pre_trn"], io_data["y_pre_wgts"]], axis=2
)
y_trn_pre = io_data["y_pre_trn"]

model.compile(optimizer_pre, loss=loss_func)

Expand Down Expand Up @@ -138,9 +136,7 @@ def train_model(
)

x_trn_obs = io_data["x_trn"]
y_trn_obs = np.concatenate(
[io_data["y_obs_trn"], io_data["y_obs_wgts"]], axis=2
)
y_trn_obs = io_data["y_obs_trn"]

model.fit(
x=x_trn_obs,
Expand Down

0 comments on commit 6cd7b52

Please sign in to comment.