suggestionclient

package
v0.12.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: Apache-2.0 Imports: 19 Imported by: 2

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.

type SuggestionClient

type SuggestionClient interface {
	SyncAssignments(instance *suggestionsv1beta1.Suggestion, e *experimentsv1beta1.Experiment,
		ts []trialsv1beta1.Trial) error

	ValidateAlgorithmSettings(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