lmPredictStats

systemds.operator.algorithm.lmPredictStats(yhat: Matrix, ytest: Matrix, lm: bool)

This builtin function computes and prints a summary of accuracy measures for regression problems.

Parameters:
  • yhat – A column vector of predicted response values y

  • ytest – A column vector of actual response values y

  • lm – An indicator if used for linear regression model

Returns:

A column vector holding avg_res, ss_avg_res, and R2