calour.training.regress

calour.training.regress(exp: calour.experiment.Experiment, field, estimator, cv=<calour.training.RepeatedSortedStratifiedKFold object>, params=None)[source]

Evaluate regression during cross validation.

Note

This function is also available as a class method Experiment.regress()

Parameters:
Yields:

pandas.DataFrame – The result of prediction per sample for a given parameter set. It contains the following columns:

  • Y_TRUE: the true value for the samples
  • SAMPLE: sample IDs
  • CV: which split of the cross validation
  • Y_PRED: the predicted value for the samples