Skip to content

Commit

Permalink
Fix for specifying inner CV fold number (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs authored Feb 15, 2021
1 parent 07342e9 commit 14fe3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modnet/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def fit_preset(
val_losses = 1e20 * np.ones((len(presets),))

num_nested_folds = 5
if isinstance(nested, int):
if isinstance(nested, int) and nested != True:
num_nested_folds = nested

best_model = None
Expand Down

0 comments on commit 14fe3d2

Please sign in to comment.