Class PredictionBatch

  • All Implemented Interfaces:
    org.api4.java.ai.ml.core.evaluation.IPredictionBatch
    Direct Known Subclasses:
    RankingPredictionBatch

    public class PredictionBatch
    extends java.lang.Object
    implements org.api4.java.ai.ml.core.evaluation.IPredictionBatch
    • Constructor Summary

      Constructors 
      Constructor Description
      PredictionBatch​(I[] predictions)  
      PredictionBatch​(java.util.List<? extends org.api4.java.ai.ml.core.evaluation.IPrediction> predictions)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.api4.java.ai.ml.core.evaluation.IPrediction get​(int index)  
      int getNumPredictions()  
      java.util.List<? extends org.api4.java.ai.ml.core.evaluation.IPrediction> getPredictions()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PredictionBatch

        public PredictionBatch​(java.util.List<? extends org.api4.java.ai.ml.core.evaluation.IPrediction> predictions)
      • PredictionBatch

        public PredictionBatch​(I[] predictions)
    • Method Detail

      • getPredictions

        public java.util.List<? extends org.api4.java.ai.ml.core.evaluation.IPrediction> getPredictions()
        Specified by:
        getPredictions in interface org.api4.java.ai.ml.core.evaluation.IPredictionBatch
      • getNumPredictions

        public int getNumPredictions()
        Specified by:
        getNumPredictions in interface org.api4.java.ai.ml.core.evaluation.IPredictionBatch
      • get

        public org.api4.java.ai.ml.core.evaluation.IPrediction get​(int index)
        Specified by:
        get in interface org.api4.java.ai.ml.core.evaluation.IPredictionBatch