Documentation ¶
Index ¶
- func CheckAssignments(t *redskyv1beta1.Trial, exp *redskyv1beta1.Experiment) error
- func CheckDefinition(exp *redskyv1beta1.Experiment, ee *redskyapi.Experiment) error
- func CheckMetricBounds(m *redskyv1beta1.Metric, v *redskyv1beta1.Value) error
- func CheckParameterValue(p *redskyv1beta1.Parameter, v intstr.IntOrString) bool
- type AssignmentError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAssignments ¶
func CheckAssignments(t *redskyv1beta1.Trial, exp *redskyv1beta1.Experiment) error
CheckAssignments ensures the trial assignments match the definitions on the experiment
func CheckDefinition ¶
func CheckDefinition(exp *redskyv1beta1.Experiment, ee *redskyapi.Experiment) error
CheckDefinition will make sure the cluster and API experiment definitions are compatible
func CheckMetricBounds ¶
func CheckMetricBounds(m *redskyv1beta1.Metric, v *redskyv1beta1.Value) error
CheckMetricBounds ensures the specified
func CheckParameterValue ¶ added in v1.10.0
func CheckParameterValue(p *redskyv1beta1.Parameter, v intstr.IntOrString) bool
CheckParameterValue ensures the supplied value in range for the parameter.
Types ¶
type AssignmentError ¶
type AssignmentError struct { // Parameter names for which the assignment is missing Unassigned []string // Parameter names for which there is no definition Undefined []string // Parameter names for which the assignment is out of bounds OutOfBounds []string // Parameter names for which multiple assignments exist Duplicated []string }
AssignmentError is raised when trial assignments do not match the experiment parameter definitions
func (*AssignmentError) Error ¶
func (e *AssignmentError) Error() string
Error returns a message describing the nature of the problems with the assignments
Click to show internal directories.
Click to hide internal directories.