Documentation ¶
Index ¶
- type General
- func (g *General) ConvertExperiment(e *experimentsv1beta1.Experiment) *suggestionapi.Experiment
- func (g *General) ConvertTrials(ts []trialsv1beta1.Trial) []*suggestionapi.Trial
- func (g *General) SyncAssignments(instance *suggestionsv1beta1.Suggestion, e *experimentsv1beta1.Experiment, ...) error
- func (g *General) ValidateAlgorithmSettings(instance *suggestionsv1beta1.Suggestion, e *experimentsv1beta1.Experiment) error
- func (g *General) ValidateEarlyStoppingSettings(instance *suggestionsv1beta1.Suggestion, e *experimentsv1beta1.Experiment) error
- type SuggestionClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type General ¶
type General struct { }
General is the implementation for SuggestionClient.
func (*General) ConvertExperiment ¶
func (g *General) ConvertExperiment(e *experimentsv1beta1.Experiment) *suggestionapi.Experiment
ConvertExperiment converts CRD to the GRPC definition.
func (*General) ConvertTrials ¶
func (g *General) ConvertTrials(ts []trialsv1beta1.Trial) []*suggestionapi.Trial
ConvertTrials converts CRD to the GRPC definition.
func (*General) SyncAssignments ¶
func (g *General) SyncAssignments( instance *suggestionsv1beta1.Suggestion, e *experimentsv1beta1.Experiment, ts []trialsv1beta1.Trial) error
SyncAssignments syncs assignments from Suggestion and EarlyStopping service. If early stopping is set, we call GetEarlyStoppingRules after GetSuggestions
func (*General) ValidateAlgorithmSettings ¶
func (g *General) ValidateAlgorithmSettings(instance *suggestionsv1beta1.Suggestion, e *experimentsv1beta1.Experiment) error
ValidateAlgorithmSettings validates if the algorithm specific configurations are valid.
func (*General) ValidateEarlyStoppingSettings ¶ added in v0.13.0
func (g *General) ValidateEarlyStoppingSettings(instance *suggestionsv1beta1.Suggestion, e *experimentsv1beta1.Experiment) error
ValidateEarlyStoppingSettings validates if the algorithm specific configurations for early stopping are valid.
type SuggestionClient ¶
type SuggestionClient interface { SyncAssignments(instance *suggestionsv1beta1.Suggestion, e *experimentsv1beta1.Experiment, ts []trialsv1beta1.Trial) error ValidateAlgorithmSettings(instance *suggestionsv1beta1.Suggestion, e *experimentsv1beta1.Experiment) error ValidateEarlyStoppingSettings(instance *suggestionsv1beta1.Suggestion, e *experimentsv1beta1.Experiment) error }
SuggestionClient is the interface to communicate with algorithm services.
Click to show internal directories.
Click to hide internal directories.