Package org.tribuo.common.sgd
Class AbstractSGDModel.PredAndActive
java.lang.Object
org.tribuo.common.sgd.AbstractSGDModel.PredAndActive
- Enclosing class:
- AbstractSGDModel<T extends Output<T>>
A nominal tuple used to capture the prediction and the number of active features used by the model.
-
Field Summary
Modifier and TypeFieldDescriptionfinal int
The number of active features used in the prediction.final DenseVector
The vector prediction. -
Method Summary
-
Field Details
-
prediction
The vector prediction. -
numActiveFeatures
public final int numActiveFeaturesThe number of active features used in the prediction.
-