public class LinearPrediction extends PredictionFunction
Constructor and Description |
---|
LinearPrediction() |
Modifier and Type | Method and Description |
---|---|
static WeightVector |
gradient(Vector features,
WeightVector weights) |
static double |
predict(Vector features,
WeightVector weightVector) |
gradient, predict
public static double predict(Vector features, WeightVector weightVector)
public static WeightVector gradient(Vector features, WeightVector weights)
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.