public class StumpClassifier extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StumpClassifier.WeightedLearner |
Modifier and Type | Field and Description |
---|---|
int |
dimension
The dimension of the feature on which this stump operates
|
int |
sign
The sign of the stump (determines which side of the threshold corresponds
to positive)
|
float |
threshold
The threshold which is the feature is tested against
|
Constructor and Description |
---|
StumpClassifier() |
Modifier and Type | Method and Description |
---|---|
boolean |
classify(float f) |
boolean |
classify(float[] instanceFeature) |
public int dimension
public float threshold
public int sign
public StumpClassifier()