validation

package
v1.12.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL