Package org.encog.workbench

Examples of org.encog.workbench.WorkBenchError


    this.setBorder(BorderFactory.createLineBorder(Color.BLACK));

    this.grid = new boolean[this.gridX * this.gridY];
   
    if( grid.length!=((MLInput)method).getInputCount() ) {
      throw new WorkBenchError("The (rows x columns) must equal the neuron count.");
    }
   
    this.addMouseListener(this);
    this.method = method;
  }
View Full Code Here


    }

    this.grid = new boolean[this.gridX * this.gridY];
   
    if( grid.length!=network.getNeuronCount() ) {
      throw new WorkBenchError("The (rows x columns) must equal the neuron count.");
    }
   
    this.addMouseListener(this);
    this.network = network;
  }
View Full Code Here

    String contents;
    try {
      contents = FileUtil.readFileAsString(encogObject.getFile());
      display(contents);
    } catch (IOException e) {
      throw new WorkBenchError(e);
    }
   
  }
View Full Code Here

      is.close();
      this.editor.getDocument().addDocumentListener(this.dirty);
      setDirty(false);

    } catch (IOException ex) {
      throw new WorkBenchError(ex);
    }
  }
View Full Code Here

      FileWriter out = new FileWriter(this.getEncogObject().getFile());
      this.editor.write(out);
      out.close();
      setDirty(false);
    } catch (IOException ex) {
      throw new WorkBenchError(ex);
    }
  }
View Full Code Here

      out = new BasicMLData(1);
      out.setData(0,
          ((MLClassification) method).classify(data.getInput()));

    } else {
      throw new WorkBenchError("Unsupported Machine Learning Method:"
          + method.getClass().getSimpleName());
    }

    return out;
  }
View Full Code Here

      // byte encoding
      boolean useCSS = true;
      Writer out = new OutputStreamWriter(new FileOutputStream(filename), "UTF-8");
      svgGenerator.stream(out, useCSS);
      } catch(IOException ex) {
        throw new WorkBenchError(ex);
      }
    }
View Full Code Here

      EncogWorkBench.getInstance().outputLine(ex.getMessage());
      EncogWorkBench.displayError("Error",
          "This Analyst Script has compile errors.");
      return false;
    } catch (IOException ex) {
      throw new WorkBenchError(ex);
    }
  }
View Full Code Here

  private void loadFromFile() {
    try {
      this.setText(org.encog.util.file.FileUtil.readFileAsString(this
          .getEncogObject().getFile()));
    } catch (IOException e) {
      throw new WorkBenchError(e);
    }
  }
View Full Code Here

        this.setText(os.toString());
       
        EncogWorkBench.displayMessage("Complete", "Ranges have been updated, save your file if changes are acceptable.");
      }
    } catch (IOException ex) {
      throw new WorkBenchError(ex);
    } finally {
      EncogWorkBench.getInstance().getMainWindow().endWait();
    }

  }
View Full Code Here

TOP

Related Classes of org.encog.workbench.WorkBenchError

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.