Class AbstractSGDModel.PredAndActive

Enclosing class:
AbstractSGDModel<T extends Output<T>>

protected static final class AbstractSGDModel.PredAndActive extends Object
A nominal tuple used to capture the prediction and the number of active features used by the model.
  • Field Details

    • prediction

      public final DenseVector prediction
      The vector prediction.
    • numActiveFeatures

      public final int numActiveFeatures
      The number of active features used in the prediction.