// -------- classification methods
@Override
public Vector classify(Vector instance) {
Vector r = new DenseVector(numCategories() - 1);
BinaryFunction scale = Functions.plusMult(1.0 / models.size());
for (OnlineLogisticRegression model : models) {
r.assign(model.classify(instance), scale);
}
return r;
}