training

package
v0.0.0-...-db3a1d9 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const (
	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"
)
View Source
const (
	GetToolchainIntegrationURL    = "/toolchain/integration/:id"
	GetAllToolchainIntegrationURL = "/toolchain/integration"
	CreateToolchainIntegrationURL = "/toolchain/integration"
	UpdateToolchainIntegrationURL = "/toolchain/integration"
	DeleteToolchainIntegrationURL = "/toolchain/integration/:id"
	IDTiURLParam                  = "id"
)
View Source
const (
	ValidationTiErrorMessage      = "Validation of toolchain integration is failed"
	EmptyEntrypointErrorMessage   = "entrypoint must be no empty"
	EmptyDefaultImageErrorMessage = "defaultImage must be no empty"
)

Variables

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

	DefaultTrainingResources = v1alpha1.ResourceRequirements{
		Limits: &v1alpha1.ResourceList{
			CPU:    &defaultCPULimit,
			Memory: &defaultMemoryLimit,
		},
		Requests: &v1alpha1.ResourceList{
			CPU:    &defaultCPURequests,
			Memory: &defaultMemoryRequests,
		},
	}
)

Functions

func ConfigureRoutes

func ConfigureRoutes(routeGroup *gin.RouterGroup, mtRepository mt_repository.Repository,
	connRepository conn_repository.Repository)

Types

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.Repository, connRepository conn_repository.Repository) *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
}

Jump to

Keyboard shortcuts

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