public boolean LoadData(String fileName) throws FileNotFoundException {
        Scanner dataScanner = new Scanner(new File(fileName));
        int numInputs = dataScanner.nextInt();
        numHidden  = dataScanner.nextInt();
        int numTargets = dataScanner.nextInt();
        int numRows = dataScanner.nextInt();
        trainingData = new double[numRows][numInputs];
        targetData = new double[numRows][numTargets];
        while (dataScanner.hasNext()) {
            for (int r = 0; r < numRows; r++) {
                for (int i = 0; i < numInputs; i++) {
                    trainingData[r][i] = dataScanner.nextDouble();
                }
                for (int t = 0; t < numTargets; t++) {
                    targetData[r][t] = dataScanner.nextDouble();
                }
            }

        }
    return true;}