public class ScoreUtil extends Object
| Constructor and Description |
|---|
ScoreUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.deeplearning4j.eval.Evaluation |
getEvaluation(org.deeplearning4j.nn.graph.ComputationGraph model,
org.nd4j.linalg.dataset.api.iterator.DataSetIterator testData)
Get the evaluation
for the given model and test dataset
|
static org.deeplearning4j.eval.Evaluation |
getEvaluation(org.deeplearning4j.nn.graph.ComputationGraph model,
org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator testData)
Get the evaluation
for the given model and test dataset
|
static org.deeplearning4j.eval.Evaluation |
getEvaluation(org.deeplearning4j.nn.multilayer.MultiLayerNetwork model,
org.nd4j.linalg.dataset.api.iterator.DataSetIterator testData) |
static org.nd4j.linalg.dataset.api.iterator.DataSetIterator |
getIterator(Object o)
Get a
DataSetIterator
from the given object whether it's a DataSetIterator
or DataSetIteratorFactory, any other type will throw
an IllegalArgumentException |
static org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator |
getMultiIterator(Object o)
Get a
DataSetIterator
from the given object whether it's a DataSetIterator
or DataSetIteratorFactory, any other type will throw
an IllegalArgumentException |
static double |
getScoreFromRegressionEval(org.deeplearning4j.eval.RegressionEvaluation eval,
RegressionValue regressionValue)
Deprecated.
|
static double |
score(org.deeplearning4j.nn.graph.ComputationGraph model,
org.nd4j.linalg.dataset.api.iterator.DataSetIterator testData,
boolean average)
Score based on the loss function
|
static double |
score(org.deeplearning4j.nn.graph.ComputationGraph model,
org.nd4j.linalg.dataset.api.iterator.DataSetIterator testSet,
RegressionValue regressionValue)
Run a
RegressionEvaluation
over a DataSetIterator |
static double |
score(org.deeplearning4j.nn.graph.ComputationGraph model,
org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator testData,
boolean average)
Score based on the loss function
|
static double |
score(org.deeplearning4j.nn.graph.ComputationGraph model,
org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator testSet,
RegressionValue regressionValue) |
static double |
score(org.deeplearning4j.nn.multilayer.MultiLayerNetwork model,
org.nd4j.linalg.dataset.api.iterator.DataSetIterator testData,
boolean average)
Score the given test data
with the given multi layer network
|
static double |
score(org.deeplearning4j.nn.multilayer.MultiLayerNetwork model,
org.nd4j.linalg.dataset.api.iterator.DataSetIterator testSet,
RegressionValue regressionValue)
Score the given multi layer network
|
public static org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator getMultiIterator(Object o)
DataSetIterator
from the given object whether it's a DataSetIterator
or DataSetIteratorFactory, any other type will throw
an IllegalArgumentExceptiono - the object to get the iterator frompublic static org.nd4j.linalg.dataset.api.iterator.DataSetIterator getIterator(Object o)
DataSetIterator
from the given object whether it's a DataSetIterator
or DataSetIteratorFactory, any other type will throw
an IllegalArgumentExceptiono - the object to get the iterator frompublic static org.deeplearning4j.eval.Evaluation getEvaluation(org.deeplearning4j.nn.multilayer.MultiLayerNetwork model, org.nd4j.linalg.dataset.api.iterator.DataSetIterator testData)
model - testData - public static org.deeplearning4j.eval.Evaluation getEvaluation(org.deeplearning4j.nn.graph.ComputationGraph model, org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator testData)
model - the model to get the evaluation fromtestData - the test data to do the evaluation onpublic static org.deeplearning4j.eval.Evaluation getEvaluation(org.deeplearning4j.nn.graph.ComputationGraph model, org.nd4j.linalg.dataset.api.iterator.DataSetIterator testData)
model - the model to get the evaluation fromtestData - the test data to do the evaluation onpublic static double score(org.deeplearning4j.nn.graph.ComputationGraph model, org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator testData, boolean average)
model - the model to score withtestData - the test data to scoreaverage - whether to average the score
for the whole batch or notpublic static double score(org.deeplearning4j.nn.graph.ComputationGraph model, org.nd4j.linalg.dataset.api.iterator.DataSetIterator testData, boolean average)
model - the model to score withtestData - the test data to scoreaverage - whether to average the score
for the whole batch or notpublic static double score(org.deeplearning4j.nn.graph.ComputationGraph model, org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator testSet, RegressionValue regressionValue)
model - testSet - regressionValue - public static double score(org.deeplearning4j.nn.graph.ComputationGraph model, org.nd4j.linalg.dataset.api.iterator.DataSetIterator testSet, RegressionValue regressionValue)
RegressionEvaluation
over a DataSetIteratormodel - the model to usetestSet - the test set iteratorregressionValue - the regression type to usepublic static double score(org.deeplearning4j.nn.multilayer.MultiLayerNetwork model, org.nd4j.linalg.dataset.api.iterator.DataSetIterator testData, boolean average)
model - model to usetestData - the test data to test withaverage - whether to average the score or notpublic static double score(org.deeplearning4j.nn.multilayer.MultiLayerNetwork model, org.nd4j.linalg.dataset.api.iterator.DataSetIterator testSet, RegressionValue regressionValue)
model - the model to scoretestSet - the test setregressionValue - the regression function to use@Deprecated public static double getScoreFromRegressionEval(org.deeplearning4j.eval.RegressionEvaluation eval, RegressionValue regressionValue)
Copyright © 2020. All rights reserved.