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, updatepublic LinearRegression()
public LinearRegression(LinearRegression model)
protected double[][] getUpdatedWeights()
BayesianModelgetUpdatedWeights in class BayesianModelpublic double evaluate(double[] features,
Object expected)
evaluate in class BayesianModelCopyright © 2019 WSO2. All rights reserved.