public class LinearPrediction$ extends PredictionFunction
Modifier and Type | Field and Description |
---|---|
static LinearPrediction$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
LinearPrediction$() |
Modifier and Type | Method and Description |
---|---|
WeightVector |
gradient(Vector features,
WeightVector weights) |
double |
predict(Vector features,
WeightVector weightVector) |
public static final LinearPrediction$ MODULE$
public double predict(Vector features, WeightVector weightVector)
predict
in class PredictionFunction
public WeightVector gradient(Vector features, WeightVector weights)
gradient
in class PredictionFunction
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.