@Test void evaluatePartial() throws EvaluationException, IOException { PredictionIntervalEvaluator predictionIntervalEvaluator = createPartialPI(); TensorIO input = new TensorIO(Map.of( "label", Tensor.fromDoubleData(36.2), "label_t+1", Tensor.fromDoubleData(42.1) )); TensorIO output = predictionIntervalEvaluator.evaluate(input, new EvaluationContext()); assertEquals(1, output.getBatchSize()); assertEquals( Set.of( "label_quantile_inf", "label_quantile_sup", "label_t+1_quantile_sup" ), output.tensorsNames() ); assertEquals( 36.0, (double) output.getTensor("label_quantile_inf").getData(), 0.1 ); assertEquals( 36.4, (double) output.getTensor("label_quantile_sup").getData(), 0.1 ); assertEquals( 42.6, (double) output.getTensor("label_t+1_quantile_sup").getData(), 0.1 ); }
@Override public TensorIO evaluate(TensorIO input, EvaluationContext context) throws EvaluationException { context.incEvaluation(); return evaluate(input, DEFAULT_CONFIDENCE_LEVEL, 1); }
PredictionIntervalEvaluator implements Evaluator { @Override public TensorIO evaluate(TensorIO input, EvaluationContext context) throws EvaluationException { context.incEvaluation(); return evaluate(input, DEFAULT_CONFIDENCE_LEVEL, 1); } }
PredictionIntervalEvaluator implements Evaluator { @Override public TensorIO evaluate(TensorIO input, EvaluationContext context) throws EvaluationException { context.incEvaluation(); return evaluate(input, DEFAULT_CONFIDENCE_LEVEL, 1); } private  PredictionIntervalEvaluator(
        Map<String, Double> residualsStd,
        List<Field> inputs,
        List<Field> outputs
    ); }
PredictionIntervalEvaluator implements Evaluator { @Override public TensorIO evaluate(TensorIO input, EvaluationContext context) throws EvaluationException { context.incEvaluation(); return evaluate(input, DEFAULT_CONFIDENCE_LEVEL, 1); } private  PredictionIntervalEvaluator(
        Map<String, Double> residualsStd,
        List<Field> inputs,
        List<Field> outputs
    ); static PredictionIntervalEvaluator create(PredictionIntervalEvaluatorManifest manifest, String path); @Override TensorIO evaluate(TensorIO input, EvaluationContext context); @Override List<Field> getInputs(); @Override List<Field> getOutputs(); }
PredictionIntervalEvaluator implements Evaluator { @Override public TensorIO evaluate(TensorIO input, EvaluationContext context) throws EvaluationException { context.incEvaluation(); return evaluate(input, DEFAULT_CONFIDENCE_LEVEL, 1); } private  PredictionIntervalEvaluator(
        Map<String, Double> residualsStd,
        List<Field> inputs,
        List<Field> outputs
    ); static PredictionIntervalEvaluator create(PredictionIntervalEvaluatorManifest manifest, String path); @Override TensorIO evaluate(TensorIO input, EvaluationContext context); @Override List<Field> getInputs(); @Override List<Field> getOutputs();  }