suggestionclient

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

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

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.

func New

func New() SuggestionClient

New creates a new SuggestionClient.

Jump to

Keyboard shortcuts

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