示例#1
0
        // ===========================================================================================================

        private void BtnBuildTrainingPipelineEvaluateAndTrainModel_Click(object sender, EventArgs e)
        {
            if (!_modelImplementer.Ready)
            {
                return;
            }

            TxtboxModelInformation.Clear();
            PnlBuildPipelineAndModel.BackColor    = Color.LightCoral; Application.DoEvents();
            PnlLoadTestingDataAndEvaluate.Enabled = false;

            _modelImplementer.BuildTrainingPipelineAndModel();

            if (_modelImplementer.ErrorHasOccured)
            {
                ShowMessageAlert(_modelImplementer.FailureInformation);
                TxtboxModelInformation.Text = _modelImplementer.FailureInformation;
            }
            else
            {
            }

            PnlBuildPipelineAndModel.BackColor      = Color.LightSeaGreen;
            PnlLoadTestingDataAndEvaluate.Enabled   = !_modelImplementer.ErrorHasOccured;
            PnlLoadTestingDataAndEvaluate.BackColor = Color.LightBlue;
        }
示例#2
0
        private void BtnSaveModel_Click(object sender, EventArgs e)
        {
            if (!_modelImplementer.Ready)
            {
                return;
            }

            TxtboxModelInformation.Clear(); PnlBuildPipelineAndModel.BackColor = Color.LightCoral; Application.DoEvents();

            _modelImplementer.SaveModel(ModelSettings.ModelFilePath);

            if (_modelImplementer.ErrorHasOccured)
            {
                ShowMessageAlert(_modelImplementer.FailureInformation);
                TxtboxModelInformation.Text = _modelImplementer.FailureInformation;
            }
            else
            {
            }

            PnlBuildPipelineAndModel.BackColor = Color.LightSeaGreen;
        }