Skip to content

Commit

Permalink
crossval_test: docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffjennings committed Dec 6, 2023
1 parent ef57810 commit 2631c31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/crossval_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ def test_crossvalclass_split_dartboard(coords, imager, dataset, generic_paramete
cross_validator = CrossValidate(coords, imager, **crossval_pars)
cross_validator.split_dataset(dataset)


def test_crossvalclass_split_dartboard_1kfold(coords, imager, dataset, generic_parameters):
# using the CrossValidate class, split a dataset into train/test subsets
# using 'dartboard' splitter with only 1 k-fold; check that the train set
# has ~80% of the model visibilities

crossval_pars = generic_parameters["crossval_pars"]
crossval_pars["split_method"] = "dartboard"
Expand Down

0 comments on commit 2631c31

Please sign in to comment.