|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.algorithms.optimization.DifferentiableFunction
de.jstacs.classifiers.differentiableSequenceScoreBased.OptimizableFunction
public abstract class OptimizableFunction
This is the main function for the ScoreClassifier
.
Optimizer
Nested Class Summary | |
---|---|
static class |
OptimizableFunction.KindOfParameter
This enum defines the kinds of parameters that can be
returned by the method
getParameters(KindOfParameter) . |
Constructor Summary | |
---|---|
OptimizableFunction()
|
Method Summary | |
---|---|
abstract DataSet[] |
getData()
Returns the data for each class used in this OptimizableFunction . |
abstract double[] |
getParameters(OptimizableFunction.KindOfParameter kind)
Returns some parameters that can be used for instance as start parameters. |
abstract double[][] |
getSequenceWeights()
Returns the weights for each Sequence for each
class used in this OptimizableFunction . |
abstract void |
reset()
Resets the all objects and pre-computed values. |
abstract void |
setDataAndWeights(DataSet[] data,
double[][] weights)
This method sets the data set and the sequence weights to be used. |
abstract void |
setParams(double[] current)
Sets the current values as parameters. |
Methods inherited from class de.jstacs.algorithms.optimization.DifferentiableFunction |
---|
evaluateGradientOfFunction, findOneDimensionalMin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.jstacs.algorithms.optimization.Function |
---|
evaluateFunction, getDimensionOfScope |
Constructor Detail |
---|
public OptimizableFunction()
Method Detail |
---|
public abstract double[] getParameters(OptimizableFunction.KindOfParameter kind) throws Exception
kind
- the kind of the class parameters that will be returned
Exception
- if something went wrongpublic abstract void setParams(double[] current) throws DimensionException
current
- the current values
DimensionException
- if the dimension of the current values does not match with
the dimension of the internal parameterspublic abstract void reset() throws Exception
Exception
- if something went wrongpublic abstract DataSet[] getData()
OptimizableFunction
.
getSequenceWeights()
public abstract double[][] getSequenceWeights()
Sequence
for each
class used in this OptimizableFunction
.
Sequence
and each
classgetData()
public abstract void setDataAndWeights(DataSet[] data, double[][] weights) throws IllegalArgumentException
data
- the data setsweights
- the sequence weights for each sequence in each data set
IllegalArgumentException
- if the data or the weights can not be used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |