Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelTrainThreshold ¶
type ModelTrainer ¶
type ModelTrainer struct {
// contains filtered or unexported fields
}
func NewModelTrainer ¶
func NewModelTrainer( viewModelRepository ViewModelRepository, presigner Presigner, transactor postgresql.Transactor, producer Producer, goCronScheduler *gocron.Scheduler, thresholds map[string]ModelTrainThreshold, logger *zap.Logger, ) *ModelTrainer
func (ModelTrainer) StartTrainModels ¶
func (m ModelTrainer) StartTrainModels(cron string)
StartTrainModels - функция запуска инициализации тренировки моделей по расписанию
type ViewModelRepository ¶
type ViewModelRepository interface { ViewNotLearnedModels(ctx context.Context, modelType string, trainThreshold uint64) ([]data.MLModel, error) ViewNotFineTunedFaceModels(ctx context.Context, modelType string, tuneThreshold uint64) ([]data.MLModel, error) SetModelStatus(ctx context.Context, status string, modelType string, userID string) error }
Click to show internal directories.
Click to hide internal directories.