/** * Returns the mean absolute error. Refers to the error of the predicted * values for numeric classes, and the error of the predicted probability * distribution for nominal classes. * * @return the mean absolute error */ public final double meanAbsoluteError() { return m_delegate.meanAbsoluteError(); }
/** * Returns the mean absolute error. Refers to the error of the predicted * values for numeric classes, and the error of the predicted probability * distribution for nominal classes. * * @return the mean absolute error */ public final double meanAbsoluteError() { return m_delegate.meanAbsoluteError(); }
/** * Returns the relative absolute error. * * @return the relative absolute error * @throws Exception if it can't be computed */ public final double relativeAbsoluteError() throws Exception { if (m_NoPriors) { return Double.NaN; } return 100 * meanAbsoluteError() / meanPriorAbsoluteError(); }
/** * Returns the relative absolute error. * * @return the relative absolute error * @throws Exception if it can't be computed */ public final double relativeAbsoluteError() throws Exception { if (m_NoPriors) { return Double.NaN; } return 100 * meanAbsoluteError() / meanPriorAbsoluteError(); }
/** * Gets the out of bag error that was calculated as the classifier * was built. Returns error rate in classification case and * mean absolute error in regression case. * * @return the out of bag error; -1 if out-of-bag-error has not be estimated */ public double measureOutOfBagError() { if (m_OutOfBagEvaluationObject == null) { return -1; } if (m_Numeric) { return m_OutOfBagEvaluationObject.meanAbsoluteError(); } else { return m_OutOfBagEvaluationObject.errorRate(); } }
/** * Gets the out of bag error that was calculated as the classifier * was built. Returns error rate in classification case and * mean absolute error in regression case. * * @return the out of bag error; -1 if out-of-bag-error has not be estimated */ public double measureOutOfBagError() { if (m_OutOfBagEvaluationObject == null) { return -1; } if (m_Numeric) { return m_OutOfBagEvaluationObject.meanAbsoluteError(); } else { return m_OutOfBagEvaluationObject.errorRate(); } }
text.append(Utils.doubleToString(meanAbsoluteError(), 12, 4) + "\n");
text.append(Utils.doubleToString(meanAbsoluteError(), 12, 4) + "\n");
double MAE = eval.meanAbsoluteError(); double RMSE = eval.rootMeanSquaredError(); double RAE = eval.relativeAbsoluteError();
return m_eval.SFEntropyGain(); case 11: return m_eval.meanAbsoluteError(); case 12: return m_eval.rootMeanSquaredError();
return m_eval.SFEntropyGain(); case 11: return m_eval.meanAbsoluteError(); case 12: return m_eval.rootMeanSquaredError();