The NaiveBayesMap function output is input to the NaiveBayesReduce function. The NaiveBayesReduce function outputs a model table. The following table describes the model table.
Column Name | Data Type | Description |
---|---|---|
class | VARCHAR | Response |
variable | VARCHAR | Input variable (names of input column) |
type | VARCHAR | Types of input variable ('NUMERIC' or 'CATEGORICAL') |
category | VARCHAR | If type is 'NUMERIC': NULL If type is 'CATEGORICAL': Categories of input categorical variables |
cnt | BIGINT | Count of observations with this class, variable, and category. |
sum | DOUBLE PRECISION | If type is 'NUMERIC': Sum of variable values for observations with this class, variable, and category. If type is 'CATEGORICAL': NULL |
sumSq | DOUBLE PRECISION | If type is 'NUMERIC': Sum of square variable values for observations with this class, variable, and category. If type is 'CATEGORICAL': NULL |
totalcnt | BIGINT | Total count of observations |