public abstract class AlgorithmLearn extends Function
Modifier and Type | Field and Description |
---|---|
protected FunctionLearn |
evalMetric
The metric to calculate the distance with
|
config, mathCompare, valueType
Constructor and Description |
---|
AlgorithmLearn()
Create a new instance of AlgorithmLearn.
|
AlgorithmLearn(FunctionLearn thisEvalMetric)
Create a new instance of AlgorithmLearn.
|
AlgorithmLearn(java.lang.String thisValueType)
Create a new instance of AlgorithmLearn.
|
AlgorithmLearn(java.lang.String thisValueType,
FunctionLearn thisEvalMetric)
Create a new instance of AlgorithmLearn.
|
Modifier and Type | Method and Description |
---|---|
abstract ReplySet |
train(MetricDataset dataset)
Train the function based on the supervised training method, using the dataset as input.
|
checkValueType, createFunction, createFunction, createFunction, evaluate, getConfigParams, initialise, innerObject, isLegalNumber, setConfigParams, setEvaluator, setValueType
protected FunctionLearn evalMetric
public AlgorithmLearn() throws java.lang.Exception
valueType
is set to null
and the eval
function is set to SimpleMathCompare
.java.lang.Exception
- any error.public AlgorithmLearn(java.lang.String thisValueType) throws java.lang.Exception
thisValueType
- the type of object being evaluated. Can be null if set later or not used.java.lang.Exception
- any error.public AlgorithmLearn(FunctionLearn thisEvalMetric) throws java.lang.Exception
thisEvalMetric
- the distance function.java.lang.Exception
- any error.public AlgorithmLearn(java.lang.String thisValueType, FunctionLearn thisEvalMetric) throws java.lang.Exception
thisValueType
- the type of object being evaluated. Can be null if set later or not used.thisEvalMetric
- the distance function.java.lang.Exception
- any error.public abstract ReplySet train(MetricDataset dataset) throws java.lang.Exception
dataset
- the dataset, or any list of datasets, etc.ReplySet
object, or null if one is not required.
This can store any other object as its value and can be easily created using new ReplySet(obj)
.java.lang.Exception
- any error.