Class PredictionHelper
- java.lang.Object
-
- adams.flow.transformer.summarystatistics.PredictionHelper
-
public class PredictionHelper extends Object
Helper class for predictions.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description PredictionHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double[][]
filterMissing(double[] actual, double[] predicted)
Filters out missing actual values/predicted values.static Object[]
filterMissing(String[] actual, String[] predicted, double[] prob)
Filters out missing actual values/predicted values.
-
-
-
Method Detail
-
filterMissing
public static double[][] filterMissing(double[] actual, double[] predicted)
Filters out missing actual values/predicted values.- Parameters:
actual
- the actual valuespredicted
- the predicted values- Returns:
- actual (index 0), predicted (index 1)
-
filterMissing
public static Object[] filterMissing(String[] actual, String[] predicted, double[] prob)
Filters out missing actual values/predicted values.- Parameters:
actual
- the actual valuespredicted
- the predicted valuesprob
- the probabilities, can be null- Returns:
- actual (index 0), predicted (index 1), probabilities (index 2)
-
-