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); }
public bool StartTraining() { string argv = (link.IsClassifier ? "cls" : "reg") + " \"" + name + "\"" + " " + maxEpochs + " " + logLevel + " " + refreshFreq; cmdProc = ScriptUtil.StartCmd("python", "FeedForwardNetwork.py " + argv, logLevel >= 2); return(true); }
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(); } }
public double[][] Evaluate(double[][] testData) { link.WriteMatrix("testData", testData); ScriptUtil.CallCmd("python", "EvalModel.py " + name, logLevel >= 2); return(ReadOutput()); }