trainer

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: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModelTrainer

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

func NewModelTrainer

func NewModelTrainer(
	trainRepo train_repository.Repository,
	connRepo conn_repository.Repository,
	modelTrainingID string,
) *ModelTrainer

func (*ModelTrainer) SaveResult

func (mt *ModelTrainer) SaveResult() error

This function saves a training result. To do this, it performs the following steps:

  1. It extracts the training entity from repository storage, for example, from the EDI server.
  2. It creates the training zip archive.
  3. It uploads the training zip archive to object storage.
  4. Finally, it saves the training entity results.

func (*ModelTrainer) Setup

func (mt *ModelTrainer) Setup() (err error)

This function prepares a training environment. To do this, it performs the following steps:

  1. It extracts the training entity from repository storage, for example, from the EDI server.
  2. It downloads the source code of model training.
  3. The setup function downloads all training data.
  4. Finally, it saves the training entity to allow an ML toolchain to use it.

Jump to

Keyboard shortcuts

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