/** * Forward Pass - Given input x_, get output y_. * @param x_ input * @return y_ output */ public double[] popy(double x_[]) { return popY(new double[][]{x_})[0]; }
/** * Forward Pass - Given input x_, get output y_. * @param x_ input * @return y_ output */ public double[] popy(double x_[]) { return popY(new double[][]{x_})[0]; }
double Ypred[][] = ((BPNN)m_Classifier).popY(X_); System.out.println("Y = \n"+ MatrixUtils.toString(MatrixUtils.threshold(Ypred, 0.5)));
double Ypred[][] = ((BPNN)m_Classifier).popY(X_); System.out.println("Y = \n"+ MatrixUtils.toString(MatrixUtils.threshold(Ypred, 0.5)));