Click or drag to resize
Accord.NET (logo)

CodificationVariable Enumeration

Codification type.

Namespace:  Accord.Statistics.Filters
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public enum CodificationVariable
Members
  Member nameValueDescription
Default0 Returns Ordinal.
Ordinal0 The variable should be codified as an ordinal variable, meaning they will be translated to symbols 0, 1, 2, ... n, where n is the total number of distinct symbols this variable can assume. This is the default encoding in the Codification filter.
Categorical1 This variable should be codified as a 1-of-n vector by creating one column for each symbol this variable can assume, and marking the column corresponding to the current symbol as 1 and the rest as zero.
CategoricalWithBaseline2 This variable should be codified as a 1-of-(n-1) vector by creating one column for each symbol this variable can assume, except the first. This is the same as as Categorical, but the first symbol is handled as a baseline (and should be indicated by a zero in every column).
Continuous3 This variable is continuous and should be not be codified.
Discrete4 This variable is discrete and should be not be codified.
See Also