Class EvaluationRecord
- java.lang.Object
-
- org.nd4j.autodiff.listeners.records.EvaluationRecord
-
public class EvaluationRecord extends Object
-
-
Constructor Summary
Constructors Constructor Description EvaluationRecord(Map<String,List<IEvaluation>> evaluations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends IEvaluation<T>>
Tevaluation(Class<T> evalClass)
Get the evaluation of a given type<T extends IEvaluation>
Tevaluation(String param)
Get the evaluation for a given param/variableIEvaluation
evaluation(String param, int index)
Get the evaluation for param at the specified index<T extends IEvaluation<T>>
Tevaluation(String param, Class<T> evalClass)
Get the evaluation of a given type, for a given param/variable<T extends IEvaluation>
Tevaluation(SDVariable param)
Get the evaluation for a given param/variableIEvaluation
evaluation(SDVariable param, int index)
Get the evaluation for param at the specified index<T extends IEvaluation<T>>
Tevaluation(SDVariable param, Class<T> evalClass)
Get the evaluation of a given type, for a given param/variableMap<String,List<IEvaluation>>
evaluations()
Get all evaluationsList<IEvaluation>
evaluations(String param)
Get evaluations for a given param/variableList<IEvaluation>
evaluations(SDVariable param)
Get evaluations for a given param/variabledouble
getValue(String param, int index, IMetric metric)
Get the metric's value for the evaluation for a given param/variable at the given indexdouble
getValue(String param, IMetric metric)
Get the metric's value for the evaluation of the metric's type, for a given param/variabledouble
getValue(SDVariable param, int index, IMetric metric)
Get the metric's value for the evaluation for a given param/variable at the given indexdouble
getValue(SDVariable param, IMetric metric)
Get the metric's value for the evaluation of the metric's type, for a given param/variabledouble
getValue(IMetric metric)
Get the metric's value for the evaluation of the metric's typeboolean
isEmpty()
-
-
-
Constructor Detail
-
EvaluationRecord
public EvaluationRecord(Map<String,List<IEvaluation>> evaluations)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
evaluations
public Map<String,List<IEvaluation>> evaluations()
Get all evaluations
-
evaluations
public List<IEvaluation> evaluations(String param)
Get evaluations for a given param/variable- Parameters:
param
- The target param/variable
-
evaluations
public List<IEvaluation> evaluations(SDVariable param)
Get evaluations for a given param/variable- Parameters:
param
- The target param/variable
-
evaluation
public IEvaluation evaluation(String param, int index)
Get the evaluation for param at the specified index
-
evaluation
public IEvaluation evaluation(SDVariable param, int index)
Get the evaluation for param at the specified index
-
evaluation
public <T extends IEvaluation> T evaluation(String param)
Get the evaluation for a given param/variableWill throw an exception if there are more than one or no evaluations for the param
- Parameters:
param
- The target param/variable
-
evaluation
public <T extends IEvaluation> T evaluation(SDVariable param)
Get the evaluation for a given param/variableWill throw an exception if there are more than one or no evaluations for the param
- Parameters:
param
- The target param/variable
-
evaluation
public <T extends IEvaluation<T>> T evaluation(Class<T> evalClass)
Get the evaluation of a given typeWill throw an exception if there are more than one or no evaluations of that type
- Parameters:
evalClass
- The type of evaluation to look for
-
evaluation
public <T extends IEvaluation<T>> T evaluation(String param, Class<T> evalClass)
Get the evaluation of a given type, for a given param/variableWill throw an exception if there are more than one or no evaluations of that type for the given param
- Parameters:
param
- The target param/variableevalClass
- The type of evaluation to look for
-
evaluation
public <T extends IEvaluation<T>> T evaluation(SDVariable param, Class<T> evalClass)
Get the evaluation of a given type, for a given param/variableWill throw an exception if there are more than one or no evaluations of that type for the given param
- Parameters:
param
- The target param/variableevalClass
- The type of evaluation to look for
-
getValue
public double getValue(IMetric metric)
Get the metric's value for the evaluation of the metric's typeWill throw an exception if there are more than one or no evaluations of that type
- Parameters:
metric
- The metric to calculate
-
getValue
public double getValue(String param, IMetric metric)
Get the metric's value for the evaluation of the metric's type, for a given param/variableWill throw an exception if there are more than one or no evaluations of that type for the given param
- Parameters:
param
- The target param/variablemetric
- The metric to calculate
-
getValue
public double getValue(SDVariable param, IMetric metric)
Get the metric's value for the evaluation of the metric's type, for a given param/variableWill throw an exception if there are more than one or no evaluations of that type for the given param
- Parameters:
param
- The target param/variablemetric
- The metric to calculate
-
getValue
public double getValue(String param, int index, IMetric metric)
Get the metric's value for the evaluation for a given param/variable at the given indexWill throw an exception if the target evaluation doesn't support the given metric
- Parameters:
param
- The target param/variableindex
- The index of the target evaluation on the parammetric
- The metric to calculate
-
getValue
public double getValue(SDVariable param, int index, IMetric metric)
Get the metric's value for the evaluation for a given param/variable at the given indexWill throw an exception if the target evaluation doesn't support the given metric
- Parameters:
param
- The target param/variableindex
- The index of the target evaluation on the parammetric
- The metric to calculate
-
-