Class CTClassifierManager

java.lang.Object
clickTrainDetector.classification.CTClassifierManager

public class CTClassifierManager extends Object
The classification manager for the click train detector.

This handles the various types of classifiers.

Author:
Jamie Macaulay
  • Constructor Details

    • CTClassifierManager

      public CTClassifierManager(ClickTrainControl clickTrainControl)
  • Method Details

    • getClassifierName

      @Deprecated public String getClassifierName(CTClassifierType classifierType)
      Deprecated.
    • getNClassifierTypes

      public int getNClassifierTypes()
      Get the number of classifier types.
      Returns:
      the number of classifier types.
    • createClassifier

      public CTClassifier createClassifier(CTClassifierType classifierType)
      CT classifier
      Returns:
      the CT classifier
    • jsonString2Classification

      public CTClassification jsonString2Classification(String jsonstring)
      Get a classification from a string;
      Returns:
      the classification.
    • getCurrentClassifiers

      public ArrayList<CTClassifier> getCurrentClassifiers()
      Get the current classifiers.
      Returns:
      the current classifier list.
    • createClassifier

      public CTClassifier createClassifier(int clssfrIndex)
      Create a classifier.
      Parameters:
      clssfrIndex - - the classifier index
      Returns:
      the classifier
    • classify

      public CTDataUnit classify(CTDataUnit ctDataUnit)
      Classify a CTData unit base on current classifiers,.
      Parameters:
      ctDataUnit - - the data unit to classify
      Returns:
      - the same data unit with classification updated (not cloned)
    • classifySpecies

      public CTDataUnit classifySpecies(CTDataUnit ctDataUnit)
      Classify the species of the CTDataUnit.,
      Parameters:
      ctDataUnit - - the ctDataUnit
      Returns:
      ctDataUnit with classification info added.
    • setupClassifiers

      public void setupClassifiers()
      Setup classifiers based on the list of classifier params in the list.
    • getPreClassifier

      public Chi2ThresholdClassifier getPreClassifier()
      Get the pre-classifer. This is an intial very broad classifier that is used to determine whether a click train should be saved or dumped from memory.
      Returns:
      the pre-classifier.