-
Notifications
You must be signed in to change notification settings - Fork 347
/
zgen_hyperparameter_v0.go
43 lines (36 loc) · 1.15 KB
/
zgen_hyperparameter_v0.go
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
// Code generated by gen.py. DO NOT EDIT.
package expconf
import (
"github.com/santhosh-tekuri/jsonschema/v2"
"github.com/determined-ai/determined/master/pkg/schemas"
)
func (h HyperparameterV0) GetUnionMember() interface{} {
if h.RawConstHyperparameter != nil {
return *h.RawConstHyperparameter
}
if h.RawIntHyperparameter != nil {
return *h.RawIntHyperparameter
}
if h.RawDoubleHyperparameter != nil {
return *h.RawDoubleHyperparameter
}
if h.RawLogHyperparameter != nil {
return *h.RawLogHyperparameter
}
if h.RawCategoricalHyperparameter != nil {
return *h.RawCategoricalHyperparameter
}
if h.RawNestedHyperparameter != nil {
return *h.RawNestedHyperparameter
}
panic("no union member defined")
}
func (h HyperparameterV0) ParsedSchema() interface{} {
return schemas.ParsedHyperparameterV0()
}
func (h HyperparameterV0) SanityValidator() *jsonschema.Schema {
return schemas.GetSanityValidator("http://determined.ai/schemas/expconf/v0/hyperparameter.json")
}
func (h HyperparameterV0) CompletenessValidator() *jsonschema.Schema {
return schemas.GetCompletenessValidator("http://determined.ai/schemas/expconf/v0/hyperparameter.json")
}