Module datarush.analytics
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 Summary
Constructors Constructor Description DiscreteInputMappingModel()
Creates an empty DiscreteInputMappingModel
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<InputTargetPair,Long>
getPairCounts()
Gets the map of pair counts.void
setPairCounts(Map<InputTargetPair,Long> pairCounts)
Sets the map of pair counts.
-
-
-
Method Detail
-
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.
-
-