Package se.hb.jcp.ml

Interface IClassifierInformation

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getAttributeCount()
      Returns the number of attributes the classifier has been trained on.
      java.lang.Double[] getLabels()
      Returns the set of class labels the classifier has been trained on.
      boolean isTrained()
      Returns whether this classifier has been trained.
      cern.colt.matrix.DoubleMatrix1D nativeStorageTemplate()
      Returns a value of the DoubleMatrix1D derived class that is the native storage format for the classifier.
    • Method Detail

      • isTrained

        boolean isTrained()
        Returns whether this classifier has been trained.
        Returns:
        Returns true if the classifier has been trained or false otherwise.
      • getAttributeCount

        int getAttributeCount()
        Returns the number of attributes the classifier has been trained on.
        Returns:
        Returns the number of attributes the classifier has been trained on or -1 if the classifier has not been trained.
      • getLabels

        java.lang.Double[] getLabels()
        Returns the set of class labels the classifier has been trained on.
        Returns:
        Returns the class labels the classifier has been trained on in increasing order (the index is the class id) or null if the classifier has not been trained.
      • nativeStorageTemplate

        cern.colt.matrix.DoubleMatrix1D nativeStorageTemplate()
        Returns a value of the DoubleMatrix1D derived class that is the native storage format for the classifier.
        Returns:
        a value of the DoubleMatrix1D derived class of the native storage format for the classifier.