Skip to content

Commit

Permalink
[FIX] Refit after validation boolean (#991)
Browse files Browse the repository at this point in the history
* fix_reverse_refit_with_val

* fix_reverse_refit_with_val
  • Loading branch information
elephaint authored May 6, 2024
1 parent 2bde2dd commit f75731b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nbs/common.base_auto.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@
" cls_model=self.cls_model,\n",
" config=best_config,\n",
" dataset=dataset,\n",
" val_size=val_size * (1 - self.refit_with_val),\n",
" val_size=val_size * self.refit_with_val,\n",
" test_size=test_size,\n",
" distributed_config=distributed_config,\n",
" )\n",
Expand Down
2 changes: 1 addition & 1 deletion neuralforecast/common/_base_auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ def fit(
cls_model=self.cls_model,
config=best_config,
dataset=dataset,
val_size=val_size * (1 - self.refit_with_val),
val_size=val_size * self.refit_with_val,
test_size=test_size,
distributed_config=distributed_config,
)
Expand Down

0 comments on commit f75731b

Please sign in to comment.