예제 #1
0
        private void btnShowGraph_Click(object sender, EventArgs e)
        {
            var mdName = cboxModelName.Text;

            if ((mdName == noneModelName) || !File.Exists(DataModeling.workDir + mdName + ".md"))
            {
                MessageBox.Show("Model \"" + mdName + "\" is not present!");
                return;
            }
            ScriptUtil.CallCmd(DataModeling.pythonProgamm, DataModeling.homeDir + "ShowGraph.py " + cboxModelName.Text, false);
        }
예제 #2
0
        public bool StartTraining()
        {
            string argv = (link.IsClassifier ? "cls" : "reg")
                          + " \"" + name + "\""
                          + " " + maxEpochs
                          + " " + logLevel
                          + " " + refreshFreq;

            cmdProc = ScriptUtil.StartCmd("python", "FeedForwardNetwork.py " + argv, logLevel >= 2);
            return(true);
        }
예제 #3
0
 private void BtnStart_Click(object sender, EventArgs e)
 {
     Argument = tboxArgs.Text;
     argHistory.Add(Argument);
     if ((Control.ModifierKeys & Keys.Control) == Keys.Control)
     {
         ScriptUtil.CallCmd("cmd.exe", "/K echo " + ff.CommandLine + " && " + ff.CommandLine, true);
     }
     else
     {
         DoPrediction();
     }
 }
예제 #4
0
 public double[][] Evaluate(double[][] testData)
 {
     link.WriteMatrix("testData", testData);
     ScriptUtil.CallCmd("python", "EvalModel.py " + name, logLevel >= 2);
     return(ReadOutput());
 }