Documentation ¶
Index ¶
- type DefaultGenerator
- func (g *DefaultGenerator) GetMetricsCollectorImage(cKind commonapiv1alpha3.CollectorKind) (string, error)
- func (g *DefaultGenerator) GetRunSpec(e *experimentsv1alpha3.Experiment, experiment, trial, namespace string) (string, error)
- func (g *DefaultGenerator) GetRunSpecWithHyperParameters(e *experimentsv1alpha3.Experiment, experiment, trial, namespace string, ...) (string, error)
- func (g *DefaultGenerator) GetSuggestionConfigData(algorithmName string) (map[string]string, error)
- func (g *DefaultGenerator) InjectClient(c client.Client)
- type Generator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultGenerator ¶
type DefaultGenerator struct {
// contains filtered or unexported fields
}
DefaultGenerator is the default implementation of Generator.
func (*DefaultGenerator) GetMetricsCollectorImage ¶
func (g *DefaultGenerator) GetMetricsCollectorImage(cKind commonapiv1alpha3.CollectorKind) (string, error)
func (*DefaultGenerator) GetRunSpec ¶
func (g *DefaultGenerator) GetRunSpec(e *experimentsv1alpha3.Experiment, experiment, trial, namespace string) (string, error)
GetRunSpec get the specification for trial.
func (*DefaultGenerator) GetRunSpecWithHyperParameters ¶
func (g *DefaultGenerator) GetRunSpecWithHyperParameters(e *experimentsv1alpha3.Experiment, experiment, trial, namespace string, hps []commonapiv1alpha3.ParameterAssignment) (string, error)
GetRunSpecWithHyperParameters get the specification for trial with hyperparameters.
func (*DefaultGenerator) GetSuggestionConfigData ¶
func (g *DefaultGenerator) GetSuggestionConfigData(algorithmName string) (map[string]string, error)
func (*DefaultGenerator) InjectClient ¶
func (g *DefaultGenerator) InjectClient(c client.Client)
type Generator ¶
type Generator interface { InjectClient(c client.Client) GetRunSpec(e *experimentsv1alpha3.Experiment, experiment, trial, namespace string) (string, error) GetRunSpecWithHyperParameters(e *experimentsv1alpha3.Experiment, experiment, trial, namespace string, hps []commonapiv1alpha3.ParameterAssignment) (string, error) GetSuggestionConfigData(algorithmName string) (map[string]string, error) GetMetricsCollectorImage(cKind commonapiv1alpha3.CollectorKind) (string, error) }
Generator is the type for manifests Generator.
Click to show internal directories.
Click to hide internal directories.