eelbrain.BoostingResult.cross_predict

BoostingResult.cross_predict(x=None, ds=None, name=None)

Predict responses to x using complementary training data

Parameters
  • x (Union[NDVar, str, Sequence[Union[NDVar, str]], None]) – Predictors used in the original model fit. In order for cross-prediction to be accurate, x needs to match the x used in the original fit exactly in cases and time.

  • ds (Optional[Dataset]) – Dataset with predictors. If ds is specified, x can be omitted.

  • name (Optional[str]) – Name for the output NDVar.

See also

convolve

Simple prediction of linear model

Notes

This function does not adjust the mean across time of predicted responses; subtract the mean in order to compute explained variance.

Return type

NDVar