Base Cross Validation (b)

PortfolioOptimisers.fit_predict — Method
fit_predict(opt::OptE_Opt, rd::ReturnsResult)

Fit optimisation estimator opt on returns data rd, and predict over the same data.

The prediction is in-sample, so it measures the fit and not a backtest. Use fit_and_predict or cross_val_predict for an out-of-sample series.

Algorithm

  1. Fit opt on rd with optimise, giving res.
  2. Predict res over the whole of rd with predict.

Arguments

  • opt: Optimisation estimator or result.
  • rd::ReturnsResult: Returns data.

Returns

Related

source