Пример #1
0
        public ModelTraining()
        {
            InitializeComponent();
            Directory.SetCurrentDirectory(DataModeling.workDir);

            app = DataModeling.App.ScriptApp;
            ff  = new FeedforwardNetwork {
                LogLevel = 0, RefreshFreq = 50, Link = new DataLink()
            };

            propMan    = new VisuMap.Lib.PropertyManager(this, "Settings", "DataModeling");
            pluginRoot = DataModeling.App.GetPluginDataNode(0, "DataModeling", propMan.NameSpace, true);
            propMan.LoadProperties(pluginRoot);

            histograms[0] = new Histogram("Cost History", null);
            DataModeling.cmdServer.AddListener(CmdModelTraining);

            foreach (string name in DataModeling.modelManager.GetAllModelNames(app.Dataset))
            {
                cboxModelName.Items.Add(name);
            }
            cboxModelName.Items.Add(noneModelName);
            if (string.IsNullOrEmpty(ModelName))
            {
                cboxModelName.Text = "ModelA";
            }

            UpdateModelList();
            cboxModelScript.SelectedIndex = cboxModelScript.FindString(ModelScript);

            DataModeling.mdScript.CurrentTrainer = this;
            RefreshSettings();
        }
Пример #2
0
        public FeedforwardNetwork GetModel(string name)
        {
            DataLink lnk = new DataLink(DataModeling.workDir + name + ".md");

            if (lnk.ModelType.EndsWith("FeedforwardNetwork"))
            {
                var model = new FeedforwardNetwork {
                    Link = lnk,
                    Name = name
                };
                return(model);
            }
            else
            {
                return(null);
            }
        }
Пример #3
0
        public ModelTest()
        {
            InitializeComponent();
            Directory.SetCurrentDirectory(DataModeling.workDir);
            app     = DataModeling.App.ScriptApp;
            dataset = app.Dataset;
            ff      = new FeedforwardNetwork();

            propMan    = new VisuMap.Lib.PropertyManager(this, "Settings", "DataModeling");
            pluginRoot = DataModeling.App.GetPluginDataNode(0, "DataModeling", propMan.NameSpace, true);
            propMan.LoadProperties(pluginRoot);
            tboxArgs.Text = Argument;

            tboxArgs.AutoCompleteMode         = AutoCompleteMode.SuggestAppend;
            tboxArgs.AutoCompleteCustomSource = argHistory;
            tboxArgs.AutoCompleteSource       = AutoCompleteSource.CustomSource;

            UpdateModelList();
            UpdateEvalScriptList();
            DataModeling.cmdServer.AddListener(CmdModelTest);
            DataModeling.mdScript.CurrentTester = this;
        }