manifest

package
v0.16.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

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.

func New

func New(c client.Client) Generator

New creates a new Generator.

Jump to

Keyboard shortcuts

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