-
Notifications
You must be signed in to change notification settings - Fork 837
/
Copy pathrandom_ab_test.json
93 lines (93 loc) · 2.23 KB
/
random_ab_test.json
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"apiVersion": "machinelearning.seldon.io/v1alpha2",
"kind": "SeldonDeployment",
"metadata": {
"labels": {
"app": "seldon"
},
"name": "seldon-deployment"
},
"spec": {
"name": "test-deployment-abtest",
"predictors": [
{
"componentSpecs": [
{
"spec": {
"containers": [
{
"image": "seldonio/mock_classifier:1.0",
"imagePullPolicy": "IfNotPresent",
"name": "classifier-1",
"resources": {
"requests": {
"memory": "1Mi"
}
}
}
],
"terminationGracePeriodSeconds": 20
}
},
{
"metadata": {
"labels": {
"version": "v2"
}
},
"spec": {
"containers": [
{
"image": "seldonio/mock_classifier:1.0",
"imagePullPolicy": "IfNotPresent",
"name": "classifier-2",
"resources": {
"requests": {
"memory": "1Mi"
}
}
}
],
"terminationGracePeriodSeconds": 20
}
}
],
"name": "abtest",
"replicas": 1,
"annotations": {
"predictor_version": "v1"
},
"graph": {
"name": "random-ab-test",
"endpoint": {},
"implementation": "RANDOM_ABTEST",
"parameters": [
{
"name": "ratioA",
"value": "0.5",
"type": "FLOAT"
}
],
"children": [
{
"name": "classifier-1",
"endpoint": {
"type": "REST"
},
"type": "MODEL",
"children": []
},
{
"name": "classifier-2",
"endpoint": {
"type": "REST"
},
"type": "MODEL",
"children": []
}
]
}
}
]
}
}