Class RegressionEvaluator

java.lang.Object
org.tribuo.evaluation.AbstractEvaluator<Regressor,org.tribuo.regression.evaluation.RegressionMetric.Context,RegressionEvaluation,RegressionMetric>
org.tribuo.regression.evaluation.RegressionEvaluator
All Implemented Interfaces:
Evaluator<Regressor,RegressionEvaluation>

public final class RegressionEvaluator extends AbstractEvaluator<Regressor,org.tribuo.regression.evaluation.RegressionMetric.Context,RegressionEvaluation,RegressionMetric>
A Evaluator for multi-dimensional regression using Regressors.

If the dataset contains an unknown Regressor (as generated by RegressionFactory.getUnknownOutput()) then the evaluate methods will throw IllegalArgumentException with an appropriate message.

  • Constructor Details

    • RegressionEvaluator

      public RegressionEvaluator()
      By default, don't use example weights.
    • RegressionEvaluator

      public RegressionEvaluator(boolean useExampleWeights)
      Construct an evaluator.

      Will weight the examples if requested.

      Parameters:
      useExampleWeights - Set to true to use the example weights to adjust the importance of the predictions.
  • Method Details