Class 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
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ModelsEvaluatorTester

        public ModelsEvaluatorTester()
    • 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