public virtual double[] readInput() { try { string inputLine = bufferedReader.readLine(); if (inputLine != null) { double[] inputBuffer = VectorParser.parseDoubleArray(inputLine); return(inputBuffer); } return(null); } catch (IOException ex) { throw new NeurophInputException("Error reading input from stream!", ex); } }
/// <summary> /// Creates new training element with specified input and desired output /// vectors specifed as strings /// </summary> /// <param name="input"> input vector as space separated string </param> /// <param name="desiredOutput"> desired output vector as space separated string </param> public DataSetRow(string input, string desiredOutput) { this.input = VectorParser.parseDoubleArray(input); this.desiredOutput = VectorParser.parseDoubleArray(desiredOutput); }