Class DiscreteInputMappingModel

java.lang.Object
com.pervasive.datarush.analytics.naivebayes.InputMappingModel
com.pervasive.datarush.analytics.naivebayes.DiscreteInputMappingModel

public final class DiscreteInputMappingModel extends InputMappingModel
InputMappingModel for discrete ( categorical ) data. Corresponds to the "PairCounts" PMML element.
  • Constructor Details

    • DiscreteInputMappingModel

      public DiscreteInputMappingModel()
      Creates an empty DiscreteInputMappingModel
  • Method Details

    • setPairCounts

      public void setPairCounts(Map<InputTargetPair,Long> pairCounts)
      Sets the map of pair counts. Keys in the map represent the pair (input, target). Values in the map represent the corresponding count.
      Parameters:
      pairCounts - the map of pair counts.
    • getPairCounts

      public Map<InputTargetPair,Long> getPairCounts()
      Gets the map of pair counts. Keys in the map represent the pair (input, target). Values in the map represent the corresponding count.
      Returns:
      the map of pair counts.