示例#1
0
        private void SendNotification(string lczItemName)
        {
            LocalizableString template = new LocalizableString(
                _userConnection.Workspace.ResourceStorage, "MLDataLoader", lczItemName);
            string message = string.Format(template, _config.MaxRecordsCount);

            _modelEventsNotifier.NotifyModelEventRecipients(message);
        }
示例#2
0
        private void NotifyUsers(TrainSessionState newSessionState, Guid modelId)
        {
            EntitySchema schema = _userConnection.EntitySchemaManager.GetInstanceByName("MLModel");
            Entity       model  = schema.CreateEntity(_userConnection);

            if (!model.FetchFromDB("Id", modelId, new[] { schema.PrimaryDisplayColumn.Name }))
            {
                return;
            }
            LocalizableString template = new LocalizableString(_userConnection.Workspace.ResourceStorage,
                                                               "MLModelTrainer", "LocalizableStrings.ModelStateChangedMessage.Value");
            string message = string.Format(template, model.PrimaryDisplayColumnValue, newSessionState);

            _modelEventsNotifier.NotifyModelEventRecipients(message);
        }