public static class Lexicon.CountPolicy extends Object
enum
.
The three feature counting policies are described below.
- None
- Features occurrences are not counted.
- Global
- The lexicon stores one integer count per feature, and every occurrence of the feature adds to this count regardless of the example it appears in.
- Per Class
- The lexicon stores one integer count for each (feature, prediction class) pair. When a given feature appears in example, this occurrence adds to the count associated with the example's label, assuming that examples have a single discrete label.
Modifier and Type | Field and Description |
---|---|
static Lexicon.CountPolicy |
global
Represents global counting.
|
static Lexicon.CountPolicy |
none
Represents no counting.
|
static Lexicon.CountPolicy |
perClass
Represents per class counting.
|
Modifier and Type | Method and Description |
---|---|
String |
toString()
Retrieves the name of the policy represented by this object.
|
public static final Lexicon.CountPolicy none
public static final Lexicon.CountPolicy global
public static final Lexicon.CountPolicy perClass
Copyright © 2016. All rights reserved.