View source: R/metafeaturefunctions.R
ComputeLocalErrorMetafeature | R Documentation |
Computes the importance as the median absolute error for local predictors (i.e. the predictions for k nearest neighbors of each sample).
ComputeLocalErrorMetafeature(
predictions,
true,
k,
inputData,
eigStep = 10,
alphaMin = 0,
alphaMax = 1,
alphaStep = 0.1
)
predictions |
Prediction data frame, where rows are samples, and columns are predictors. |
true |
Named vector of the true outcome values. |
k |
The number of nearest neighbors to consider. |
inputData |
The input data read in using the function IntLIM function ReadData. |
eigStep |
The number of eigenvectors to step by during the evaluation. Note that this must be less than the number of samples. Default = 10. |
alphaMin |
The lowest value of alpha to investigate. Default = 0. |
alphaMax |
The highest value of alpha to investigate. Default = 1. |
alphaStep |
The value of alpha to step by during the evalutation. Default = 0.1. |
A data frame with the importance metric for each sample and each predictor.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.