PredictorMeasurementsObject

PredictorMeasurementsObject[]

represents an object generated by PredictorMeasurements that can be applied to properties.

Details and Options

  • PredictorMeasurementsObject[][prop] is used to look up property prop from the PredictorMeasurementsObject.
  • PredictorMeasurementsObject[][{prop1,prop2,}] is used to look up many properties.
  • PredictorMeasurementsObject[][prop,opts] specifies that the predictor should use the options opts when applied to the test set. These options supersede original options given to PredictorMeasurements.
  • Possible options are as given in PredictorFunction[], with the following addition:
  • ComputeUncertaintyFalsewhether measures should be given with their statistical uncertainty
  • When ComputeUncertaintyTrue, numerical measures will be returned as Around[result,err], where err represents the standard error (corresponding to a 68% confidence interval) associated with measure result.
  • Properties returning a single numeric value related to prediction abilities on the test set include:
  • "StandardDeviation"root mean square of the residuals
    "StandardDeviationBaseline"standard deviation of test set values
    "LogLikelihood"log-likelihood of the model given the test data
    "MeanCrossEntropy"mean cross entropy over test examples
    "MeanDeviation"mean absolute value of the residuals
    "MeanSquare"mean square of the residuals
    "RSquared"coefficient of determination
    "FractionVarianceUnexplained"fraction of variance unexplained
    "Perplexity"exponential of the mean cross entropy
    "RejectionRate"fraction of examples predicted as Indeterminate
    "GeometricMeanProbabilityDensity"geometric mean of the actual-class probability densities
  • Test examples classified as Indeterminate will be discarded when measuring properties related to prediction abilities on the test set, such as "StandardDeviation" or "MeanCrossEntropy".
  • Properties returning graphics include:
  • "Report"panel reporting main measurements
    "ComparisonPlot"plot of predicted values versus test values
    "ProbabilityDensityHistogram"histogram of actual-class probability densities
    "ResidualHistogram"histogram of residuals
    "ResidualPlot"plot of the residuals
  • Timing-related properties include:
  • "EvaluationTime"time needed to predict one example of the test set
    "BatchEvaluationTime"marginal time to predict one example in a batch
  • Properties returning one value for each test-set example include:
  • "Residuals"list of differences between predicted and test values
    "ProbabilityDensities"actual-class prediction probability densities
    "SHAPValues"Shapley additive feature explanations for each example
  • "SHAPValues" assesses the contribution of features by comparing predictions with different sets of features removed and then synthesized. The option MissingValueSynthesis can be used to specify how the missing features are synthesized. SHAP explanations are given as deviation from the training output mean. "SHAPValues"n can be used to control the number of samples used for the numeric estimations of SHAP explanations.
  • Properties returning examples from the test set include:
  • "BestPredictedExamples"examples having the highest actual-class probability density
    "Examples"all test examples
    "Examples"{i1,i2}all examples in the interval i1 predicted in the interval i2
    "LeastCertainExamples"examples having the highest distribution entropy
    "MostCertainExamples"examples having the lowest distribution entropy
    "WorstPredictedExamples"examples having the lowest actual-class probability density
  • Examples are given in the form inputivaluei, where valuei is the actual value.
  • Properties such as "WorstPredictedExamples" or "MostCertainExamples" output up to 10 examples. PredictorMeasurementsObject[][propn] can be used to output n examples.
  • Other properties include:
  • "PredictorFunction"PredictorFunction[] being measured
    "Properties"list of measurement properties available

Examples

Basic Examples  (1)

Define a training set and a test set:

Create a predictor with the training set:

Generate a PredictorMeasurementsObject of the predictor with the test set:

Measure the standard deviation and plot the residuals from the PredictorMeasurementsObject:

Wolfram Research (2015), PredictorMeasurementsObject, Wolfram Language function, https://reference.wolfram.com/language/ref/PredictorMeasurementsObject.html (updated 2020).

Text

Wolfram Research (2015), PredictorMeasurementsObject, Wolfram Language function, https://reference.wolfram.com/language/ref/PredictorMeasurementsObject.html (updated 2020).

CMS

Wolfram Language. 2015. "PredictorMeasurementsObject." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/PredictorMeasurementsObject.html.

APA

Wolfram Language. (2015). PredictorMeasurementsObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PredictorMeasurementsObject.html

BibTeX

@misc{reference.wolfram_2024_predictormeasurementsobject, author="Wolfram Research", title="{PredictorMeasurementsObject}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/PredictorMeasurementsObject.html}", note=[Accessed: 07-October-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_predictormeasurementsobject, organization={Wolfram Research}, title={PredictorMeasurementsObject}, year={2020}, url={https://reference.wolfram.com/language/ref/PredictorMeasurementsObject.html}, note=[Accessed: 07-October-2024 ]}