public class InverseDecay extends Object implements DecayRate, Parameterized
α
(τ
+ time))Pegasos
,
by using an initial rate of 1 and setting τ = 1 and α = λ,
where λ is the regularization term used by the method calling the
decay rate.Constructor and Description |
---|
InverseDecay()
Creates a new Inverse Decay rate
|
InverseDecay(double tau,
double alpha)
Creates a new Inverse decay rate
|
Modifier and Type | Method and Description |
---|---|
DecayRate |
clone() |
double |
getAlpha()
Returns the scaling parameter
|
Parameter |
getParameter(String paramName)
Returns the parameter with the given name.
|
List<Parameter> |
getParameters()
Returns the list of parameters that can be altered for this learner.
|
double |
getTau()
Returns the early rate dampening parameter
|
double |
rate(double time,
double initial)
Decays the initial value over time.
|
double |
rate(double time,
double maxTime,
double initial)
Decays the initial value over time.
|
void |
setAlpha(double alpha)
Controls the scaling of the divisor, increasing α dampens the
whole range of values.
|
void |
setTau(double tau)
Controls the rate early in time, but has a decreasing impact on the rate
returned as time goes forward.
|
String |
toString() |
public InverseDecay(double tau, double alpha)
tau
- the initial time offsetalpha
- the time scalingpublic InverseDecay()
public void setAlpha(double alpha)
alpha
- the scaling parameterpublic double getAlpha()
public void setTau(double tau)
tau
- the early rate dampening parameterpublic double getTau()
public double rate(double time, double maxTime, double initial)
DecayRate
public double rate(double time, double initial)
DecayRate
public DecayRate clone()
public List<Parameter> getParameters()
Parameterized
getParameters
in interface Parameterized
public Parameter getParameter(String paramName)
Parameterized
getParameter
in interface Parameterized
paramName
- the name of the parameter to obtainCopyright © 2017. All rights reserved.