Class ModelsEvaluatorTester
- java.lang.Object
-
- com.yahoo.vespa.model.container.ml.ModelsEvaluatorTester
-
public class ModelsEvaluatorTester extends java.lang.Object
A ModelsEvaluator object is usually injected automatically in a component if requested. This class is for creating a ModelsEvaluator so that the component can be properly unit tested. Pass a directory containing model files, such as the application's "models" directory, and it will return a ModelsEvaluator for the imported models. For use in testing only.- Author:
- lesters
-
-
Constructor Summary
Constructors Constructor Description ModelsEvaluatorTester()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ai.vespa.models.evaluation.ModelsEvaluator
create(java.lang.String modelsPath)
Create a ModelsEvaluator from the models found in the modelsPath.
-
-
-
Method Detail
-
create
public static ai.vespa.models.evaluation.ModelsEvaluator create(java.lang.String modelsPath)
Create a ModelsEvaluator from the models found in the modelsPath. Does not need to be in a application package.- Parameters:
modelsPath
- Path to a directory containing models to import- Returns:
- a ModelsEvaluator containing the imported models
-
-