public class EvaluateGenData
extends java.lang.Object
evalSeed
object. This
evaluator also stores the evaluation function that is used to compare its seed
object with the problem dataset dataObject
.Modifier and Type | Field and Description |
---|---|
protected org.ai_heuristic.functs.Function |
evalFunction
Function used to do the evaluation
|
protected org.ai_heuristic.eval.metric.MetricDataset |
evalSeed
The seed that this evaluator uses for comparing problem datasets.
|
protected java.lang.String |
name
The evaluator name or id
|
Constructor and Description |
---|
EvaluateGenData(java.lang.String thisName,
org.ai_heuristic.eval.metric.MetricDataset thisEvalSeed,
org.ai_heuristic.functs.Function thisEvalFunction)
Create a new instance of EvaluateData.
|
Modifier and Type | Method and Description |
---|---|
org.ai_heuristic.eval.metric.ReplySet |
evaluate(org.ai_heuristic.eval.metric.MetricDataset dataset)
Evaluate the problem dataset and return the result.
|
org.ai_heuristic.eval.metric.MetricDataset |
getEvalSeed()
Get the object that seeded this evaluator.
|
java.lang.String |
getName()
Get the evaluator id or name.
|
void |
setEvaluationFunction(org.ai_heuristic.functs.Function thisEval)
Set the function used to evaluate the problem data.
|
protected java.lang.String name
protected org.ai_heuristic.functs.Function evalFunction
protected org.ai_heuristic.eval.metric.MetricDataset evalSeed
public EvaluateGenData(java.lang.String thisName, org.ai_heuristic.eval.metric.MetricDataset thisEvalSeed, org.ai_heuristic.functs.Function thisEvalFunction)
thisName
- a name for the evaluator.thisEvalSeed
- the object to seed the evaluation with.thisEvalFunction
- the evaluation function. Can be set later instead.public org.ai_heuristic.eval.metric.ReplySet evaluate(org.ai_heuristic.eval.metric.MetricDataset dataset) throws java.lang.Exception
dataset
- to evaluate. Can also be of type MetricCompare
,
but might then behave differently, depending on the evaluation function.java.lang.Exception
- any error.public java.lang.String getName()
public org.ai_heuristic.eval.metric.MetricDataset getEvalSeed()
public void setEvaluationFunction(org.ai_heuristic.functs.Function thisEval)
thisEval
- the evaluation function.