Documentation ¶
Index ¶
- type DefaultGenerator
- func (g *DefaultGenerator) GetEarlyStoppingConfigData(algorithmName string) (configv1beta1.EarlyStoppingConfig, error)
- func (g *DefaultGenerator) GetMetricsCollectorConfigData(cKind commonapiv1beta1.CollectorKind) (configv1beta1.MetricsCollectorConfig, error)
- func (g *DefaultGenerator) GetRunSpecWithHyperParameters(experiment *experimentsv1beta1.Experiment, trialName, trialNamespace string, ...) (*unstructured.Unstructured, error)
- func (g *DefaultGenerator) GetSuggestionConfigData(algorithmName string) (configv1beta1.SuggestionConfig, error)
- func (g *DefaultGenerator) GetTrialTemplate(instance *experimentsv1beta1.Experiment) (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) GetEarlyStoppingConfigData ¶ added in v0.13.0
func (g *DefaultGenerator) GetEarlyStoppingConfigData(algorithmName string) (configv1beta1.EarlyStoppingConfig, error)
GetEarlyStoppingConfigData returns early stopping configuration for a given algorithm.
func (*DefaultGenerator) GetMetricsCollectorConfigData ¶ added in v0.10.0
func (g *DefaultGenerator) GetMetricsCollectorConfigData(cKind commonapiv1beta1.CollectorKind) (configv1beta1.MetricsCollectorConfig, error)
GetMetricsCollectorConfigData returns metrics collector configuration for a given collector kind.
func (*DefaultGenerator) GetRunSpecWithHyperParameters ¶
func (g *DefaultGenerator) GetRunSpecWithHyperParameters(experiment *experimentsv1beta1.Experiment, trialName, trialNamespace string, assignments []commonapiv1beta1.ParameterAssignment) (*unstructured.Unstructured, error)
GetRunSpecWithHyperParameters returns the specification for trial with hyperparameters.
func (*DefaultGenerator) GetSuggestionConfigData ¶
func (g *DefaultGenerator) GetSuggestionConfigData(algorithmName string) (configv1beta1.SuggestionConfig, error)
GetSuggestionConfigData returns suggestion configuration for a given algorithm name.
func (*DefaultGenerator) GetTrialTemplate ¶ added in v0.10.0
func (g *DefaultGenerator) GetTrialTemplate(instance *experimentsv1beta1.Experiment) (string, error)
GetTrialTemplate returns string Trial template from experiment
func (*DefaultGenerator) InjectClient ¶
func (g *DefaultGenerator) InjectClient(c client.Client)
type Generator ¶
type Generator interface { InjectClient(c client.Client) GetTrialTemplate(instance *experimentsv1beta1.Experiment) (string, error) GetRunSpecWithHyperParameters(experiment *experimentsv1beta1.Experiment, trialName, trialNamespace string, assignments []commonapiv1beta1.ParameterAssignment) (*unstructured.Unstructured, error) GetSuggestionConfigData(algorithmName string) (configv1beta1.SuggestionConfig, error) GetEarlyStoppingConfigData(algorithmName string) (configv1beta1.EarlyStoppingConfig, error) GetMetricsCollectorConfigData(cKind commonapiv1beta1.CollectorKind) (configv1beta1.MetricsCollectorConfig, error) }
Generator is the type for manifests Generator.
Click to show internal directories.
Click to hide internal directories.