[source]

OrderedKFold

galaxy_ml.model_validations.OrderedKFold(n_splits=3, shuffle=False, random_state=None)

Split into K fold based on ordered target value

Parameters

  • n_splits: int, default=3
    Number of folds. Must be at least 2.
  • shuffle: bool
  • random_state: None or int

[source]

RepeatedOrderedKFold

galaxy_ml.model_validations.RepeatedOrderedKFold(n_splits=5, n_repeats=5, random_state=None)

Repeated OrderedKFold runs mutiple times with different randomization.

Parameters

  • n_splits: int, default=5
    Number of folds. Must be at least 2.
  • n_repeats: int, default=5
    Number of times cross-validator to be repeated. random_state: int, RandomState instance or None. Optional