public class LinearRegression extends BayesianModel
minimize the negative ELBO ELBO = E[log(P(yIn|xIn,weights)] - D_KL[weights,prior]
BayesianModel.OptimizerType
Constructor and Description |
---|
LinearRegression() |
LinearRegression(LinearRegression model) |
Modifier and Type | Method and Description |
---|---|
double |
evaluate(double[] features,
Object expected) |
protected double[][] |
getUpdatedWeights()
implements the model specific gradient updates.
|
getLearningRate, getNumFeatures, getNumSamples, getOptimizerType, initiateModel, predict, predictWithStd, setAddBias, setLearningRate, setNumFeatures, setNumSamples, setOptimizerType, setPredictionSamples, update
public LinearRegression()
public LinearRegression(LinearRegression model)
protected double[][] getUpdatedWeights()
BayesianModel
getUpdatedWeights
in class BayesianModel
public double evaluate(double[] features, Object expected)
evaluate
in class BayesianModel
Copyright © 2019 WSO2. All rights reserved.