aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/cfg/application/ml_models/schemas/test.sd
blob: bff0d5a54c71a58975040ce791e274d43c8e96e1 (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
33
34
35
36
37
38
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
search test {

    document test {
        field argument type tensor<float>(d0[1],d1[784]) {
            indexing: attribute
        }
    }

    rank-profile test {

        function input() {
            expression: attribute(argument)
        }

        function Placeholder() {
            expression: attribute(argument)
        }

        function mnist_softmax_onnx() {
            expression: onnx_vespa("mnist_softmax")
        }

        function my_xgboost() {
            expression: xgboost("xgboost_2_2")
        }

        function my_lightgbm() {
            expression: lightgbm("lightgbm_regression")
        }

        first-phase {
            expression: mnist_softmax_onnx + my_xgboost + my_lightgbm
        }

    }

}