Class ModelsEvaluatorTester


  • public class ModelsEvaluatorTester
    extends 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 Detail

      • ModelsEvaluatorTester

        public ModelsEvaluatorTester()
    • Method Detail

      • create

        public static ai.vespa.models.evaluation.ModelsEvaluator create​(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