Back to godoc.org

Package training

v0.0.0 (afdeb59)
Latest Go to latest
Published: Jul 3, 2020 | License: Apache-2.0 | Module: github.com/odahu/odahu-flow/packages/operator

Index

Package Files

Constants

const (
	GetModelTrainingURL        = "/model/training/:id"
	GetAllModelTrainingURL     = "/model/training"
	GetModelTrainingLogsURL    = "/model/training/:id/log"
	CreateModelTrainingURL     = "/model/training"
	UpdateModelTrainingURL     = "/model/training"
	SaveModelTrainingResultURL = "/model/training/:id/result"
	DeleteModelTrainingURL     = "/model/training/:id"
	IDMtURLParam               = "id"
	FollowURLParam             = "follow"
)
const (
	MtVcsNotExistsErrorMessage    = "cannot find VCS Connection"
	EmptyModelNameErrorMessage    = "model name must be no empty"
	EmptyModelVersionErrorMessage = "model version must be no empty"
	EmptyVcsNameMessageError      = "VCS name is empty"
	ValidationMtErrorMessage      = "Validation of model training is failed"
	WrongVcsTypeErrorMessage      = "VCS connection must have the GIT type. You pass the connection of %s type"
	WrongVcsReferenceErrorMessage = "you should specify a VCS reference for model training explicitly." +
		" Because %s does not have default reference"
	EmptyDataBindingNameErrorMessage = "you should specify connection name for %d number of data binding"
	EmptyDataBindingPathErrorMessage = "you should specify local path for %d number of data binding"
	WrongDataBindingTypeErrorMessage = "%s data binding has wrong data type. Currently supported the following types" +
		" of connections for data bindings: %v"
	ToolchainEmptyErrorMessage = "toolchain parameter is empty"
)
const (
	GetToolchainIntegrationURL    = "/toolchain/integration/:id"
	GetAllToolchainIntegrationURL = "/toolchain/integration"
	CreateToolchainIntegrationURL = "/toolchain/integration"
	UpdateToolchainIntegrationURL = "/toolchain/integration"
	DeleteToolchainIntegrationURL = "/toolchain/integration/:id"
	IDTiURLParam                  = "id"
)
const (
	ValidationTiErrorMessage      = "Validation of toolchain integration is failed"
	EmptyEntrypointErrorMessage   = "entrypoint must be no empty"
	EmptyDefaultImageErrorMessage = "defaultImage must be no empty"
)

Variables

var (
	DefaultArtifactOutputTemplate = "{{ .Name }}-{{ .Version }}-{{ .RandomUUID }}.zip"
)

func ConfigureRoutes

func ConfigureRoutes(routeGroup *gin.RouterGroup, mtRepository mt_repository.Repository,
	tiRepository mt_repository.ToolchainRepository, connRepository conn_repository.Repository,
	config config.ModelTrainingConfig, gpuResourceName string)

func ConfigureToolchainRoutes

func ConfigureToolchainRoutes(
	routeGroup *gin.RouterGroup,
	mtiRepository mt_repository.ToolchainRepository,
)

type ModelTrainingController

type ModelTrainingController struct {
	// contains filtered or unexported fields
}

type MtValidator

type MtValidator struct {
	// contains filtered or unexported fields
}

func NewMtValidator

func NewMtValidator(
	mtRepository mt_repository.ToolchainRepository,
	connRepository conn_repository.Repository,
	defaultResources odahuflowv1alpha1.ResourceRequirements,
	outputConnectionName string,
	gpuResourceName string,
) *MtValidator

func (*MtValidator) ValidatesAndSetDefaults

func (mtv *MtValidator) ValidatesAndSetDefaults(mt *training.ModelTraining) (err error)

type TiValidator

type TiValidator struct {
}

func NewTiValidator

func NewTiValidator() *TiValidator

func (*TiValidator) ValidatesAndSetDefaults

func (tiv *TiValidator) ValidatesAndSetDefaults(ti *training.ToolchainIntegration) (err error)

type ToolchainIntegrationController

type ToolchainIntegrationController struct {
	// contains filtered or unexported fields
}
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier