Skip to content

Commit

Permalink
Merge pull request #4993 from irgolic/less-folds-by-default
Browse files Browse the repository at this point in the history
owtestandscore: Change default k (folds) from 10 to 5
  • Loading branch information
janezd committed Sep 25, 2020
2 parents 59beb38 + 0b767b3 commit bd55d6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Orange/widgets/evaluate/owtestandscore.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class Outputs:
#: Selected resampling type
resampling = settings.Setting(0)
#: Number of folds for K-fold cross validation
n_folds = settings.Setting(3)
n_folds = settings.Setting(2)
#: Stratified sampling for K-fold
cv_stratified = settings.Setting(True)
#: Number of repeats for ShuffleSplit sampling
Expand Down
2 changes: 1 addition & 1 deletion Orange/widgets/evaluate/tests/test_owtestandscore.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def fail_on_first(*_, **_2):
scores = w._scores_by_folds(slots)
self.assertIsNone(scores[0])
self.assertEqual(scores[1][0], 1)
self.assertAlmostEqual(scores[2][0], 1 / 11)
self.assertAlmostEqual(scores[2][0], 1 / 6)

def test_comparison_binary_score(self):
# false warning at call_arg.kwargs
Expand Down

0 comments on commit bd55d6b

Please sign in to comment.