private void btnStochastic0_Click(object sender, EventArgs e) { var regression = new LogisticRegression(); double[,] sourceMatrix; double[,] inputs; double[] labels; GetData(out sourceMatrix, out inputs, out labels); _weight = regression.StochasticGradientAscent0(inputs.ToArray(), labels); var aaa = sourceMatrix.Submatrix(0, sourceMatrix.GetLength(0) - 1, 1, 3); CreateRegressPlot(graphInput, aaa, _weight); }