blob: a2626818f87dc6a563ae8b3145d0bd965301c7bb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package ai.vespa.rankingexpression.importer.configmodelview;
import java.util.List;
import java.util.Map;
import java.util.Optional;
/**
* Config model view of an imported machine-learned model.
*
* @author bratseth
*/
public interface ImportedMlModel {
enum ModelType {
VESPA, XGBOOST, LIGHTGBM, TENSORFLOW, ONNX
}
String name();
String source();
ModelType modelType();
Optional<String> inputTypeSpec(String input);
Map<String, String> smallConstants();
Map<String, String> largeConstants();
Map<String, String> functions();
List<ImportedMlFunction> outputExpressions();
boolean isNative();
ImportedMlModel asNative();
}
|