Module datarush.analytics
Class DiscreteInputMappingModel
java.lang.Object
com.pervasive.datarush.analytics.naivebayes.InputMappingModel
com.pervasive.datarush.analytics.naivebayes.DiscreteInputMappingModel
InputMappingModel for discrete ( categorical ) data. Corresponds to the
"PairCounts" PMML element.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the map of pair counts.voidsetPairCounts(Map<InputTargetPair, Long> pairCounts) Sets the map of pair counts.
-
Constructor Details
-
DiscreteInputMappingModel
public DiscreteInputMappingModel()Creates an empty DiscreteInputMappingModel
-
-
Method Details
-
setPairCounts
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
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.
-