public interface PriorFunction
extends org.apache.hadoop.io.Writable
Modifier and Type | Method and Description |
---|---|
double |
age(double oldValue,
double generations,
double learningRate)
Applies the regularization to a coefficient.
|
double |
logP(double betaIJ)
Returns the log of the probability of a particular coefficient value according to the prior.
|
double age(double oldValue, double generations, double learningRate)
oldValue
- The previous value.generations
- The number of generations.learningRate
- The learning rate with lambda baked in.double logP(double betaIJ)
betaIJ
- The coefficient.Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.