|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.algorithms.optimization.DifferentiableFunction
de.jstacs.classifier.scoringFunctionBased.logPrior.LogPrior
de.jstacs.classifier.scoringFunctionBased.logPrior.DoesNothingLogPrior
public class DoesNothingLogPrior
This class defines a LogPrior that does not penalize any parameter.
| Field Summary | |
|---|---|
static DoesNothingLogPrior |
defaultInstance
As this prior does not penalize parameters and does not have any parameters itself, this class does not have a constructor, but provides a default instance in order to reduce memory consumption. |
| Fields inherited from class de.jstacs.classifier.scoringFunctionBased.logPrior.LogPrior |
|---|
UNKNOWN |
| Method Summary | |
|---|---|
void |
addGradientFor(double[] params,
double[] grad)
Adds the gradient of the log-prior using the current parameters to a given vector. |
double |
evaluateFunction(double[] params)
Evaluates the function at a certain vector (in mathematical sense) x. |
int |
getDimensionOfScope()
Returns the dimension of the scope of the Function. |
String |
getInstanceName()
Returns a short instance name. |
LogPrior |
getNewInstance()
This method returns an empty new instance of the current prior. |
StringBuffer |
toXML()
Deprecated. |
| Methods inherited from class de.jstacs.classifier.scoringFunctionBased.logPrior.LogPrior |
|---|
evaluateGradientOfFunction, set |
| Methods inherited from class de.jstacs.algorithms.optimization.DifferentiableFunction |
|---|
findOneDimensionalMin |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final DoesNothingLogPrior defaultInstance
| Method Detail |
|---|
public double evaluateFunction(double[] params)
Functionx.
params - the current vector
public void addGradientFor(double[] params,
double[] grad)
LogPrior
addGradientFor in class LogPriorparams - the parametersgrad - the vectorpublic int getDimensionOfScope()
FunctionFunction.
n with
f: R^n -> R
public LogPrior getNewInstance()
throws CloneNotSupportedException
LogPriorScoringFunction
s that may be inside the instance. The ScoringFunctions must be
set by an invocation of the method
LogPrior.set(boolean, ScoringFunction...).
getNewInstance in class LogPriorCloneNotSupportedException - if something went wrong while cloningLogPrior.set(boolean, ScoringFunction...)
@Deprecated
public StringBuffer toXML()
throws RuntimeException
LogPriorLogPrior.set(boolean, ScoringFunction...)
has to be invoked after decoding.
toXML in interface StorabletoXML in class LogPriorRuntimeExceptionpublic String getInstanceName()
LogPrior
getInstanceName in class LogPrior
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||