-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathpredict_curve.json
99 lines (99 loc) · 3.59 KB
/
predict_curve.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
94
95
96
97
98
99
{
"id": "predict_curve",
"summary": "Predict values",
"description": "Predict values using a model function and pre-computed parameters. The process is intended to compute values for new labels.",
"categories": [
"cubes",
"math"
],
"experimental": true,
"parameters": [
{
"name": "parameters",
"description": "A data cube with optimal values, e.g. computed by the process ``fit_curve()``.",
"schema": {
"type": "object",
"subtype": "datacube"
}
},
{
"name": "function",
"description": "The model function. It must take the parameters to fit as array through the first argument and the independent variable `x` as the second argument.\n\nIt is recommended to store the model function as a user-defined process on the back-end.",
"schema": {
"type": "object",
"subtype": "process-graph",
"parameters": [
{
"name": "x",
"description": "The value for the independent variable `x`.",
"schema": {
"type": "number"
}
},
{
"name": "parameters",
"description": "The parameters for the model function, contains at least one parameter.",
"schema": {
"type": "array",
"minItems": 1,
"items": {
"type": "number"
}
}
}
],
"returns": {
"description": "The computed value `y` value for the given independent variable `x` and the parameters.",
"schema": {
"type": "number"
}
}
}
},
{
"name": "dimension",
"description": "The name of the dimension for predictions.",
"schema": {
"type": "string"
}
},
{
"name": "labels",
"description": "The labels to predict values for. If no labels are given, predicts values only for no-data (`null`) values in the data cube.",
"optional": true,
"default": null,
"schema": [
{
"type": "null"
},
{
"type": "array",
"items": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"format": "date",
"subtype": "date"
},
{
"type": "string",
"format": "date-time",
"subtype": "date-time"
}
]
}
}
]
}
],
"returns": {
"description": "A data cube with the predicted values with the provided dimension `dimension` having as many labels as provided through `labels`.",
"schema": {
"type": "object",
"subtype": "datacube"
}
}
}