Package org.encog.workbench.frames.document.tree

Examples of org.encog.workbench.frames.document.tree.ProjectEGFile


  }

  private void performTrain() {
    InputNEAT dialog = new InputNEAT();
    if (dialog.process()) {
      ProjectEGFile popFile = dialog.getPopulation();
      NEATPopulation pop = (NEATPopulation) popFile.getObject();

      pop.setInputCount(2);
      pop.setOutputCount(1);
      MLDataSet training = dialog.getTrainingSet();
View Full Code Here


    List<ProjectEGFile> result = new ArrayList<ProjectEGFile>();

    for (ProjectItem item : this.getMainWindow().getTree().getModel()
        .getData()) {
      if (item instanceof ProjectEGFile) {
        ProjectEGFile item2 = (ProjectEGFile) item;
        Class<?> clazz = ReflectionUtil.resolveEncogClass(item2
            .getEncogType());
        if( clazz == null) {
          continue;
        }
        if (MLMethod.class.isAssignableFrom(clazz)) {
View Full Code Here

    List<ProjectEGFile> result = new ArrayList<ProjectEGFile>();

    for (ProjectItem item : this.getMainWindow().getTree().getModel()
        .getData()) {
      if (item instanceof ProjectEGFile) {
        ProjectEGFile item2 = (ProjectEGFile) item;
        Class<?> clazz = ReflectionUtil.resolveEncogClass(item2
            .getEncogType());
        if (NEATPopulation.class.isAssignableFrom(clazz)) {
          result.add(item2);
        }
      }
View Full Code Here

        return;
      }

      if (method instanceof HopfieldNetwork) {
        HopfieldNetwork hp = (HopfieldNetwork) method;
        ProjectEGFile file = (ProjectEGFile) dialog.getComboNetwork()
            .getSelectedValue();
        for (MLDataPair pair : trainingData) {
          hp.addPattern(pair.getInput());
        }
        if (EncogWorkBench.askQuestion("Hopfield",
            "Training done, save?")) {
          file.save();
        }
      } else if (method instanceof SOM) {
        ProjectEGFile file = (ProjectEGFile) dialog.getComboNetwork()
            .getSelectedValue();
        performSOM(file, trainingData);
      } else if (method instanceof SVM) {
        ProjectEGFile file = (ProjectEGFile) dialog.getComboNetwork()
            .getSelectedValue();
        performSVM(file, trainingData);
      } else if (method instanceof CPN) {
        ProjectEGFile file = (ProjectEGFile) dialog.getComboNetwork()
            .getSelectedValue();
        performCPN(file, trainingData);
      } else if (method instanceof BasicNetwork || method instanceof RBFNetwork ) {

        ChooseBasicNetworkTrainingMethod choose = new ChooseBasicNetworkTrainingMethod(
            EncogWorkBench.getInstance().getMainWindow(),method);
        if (choose.process()) {
          ProjectEGFile file = (ProjectEGFile) dialog
              .getComboNetwork().getSelectedValue();

          switch (choose.getType()) {
          case SCG:
            performSCG(file, trainingData);
View Full Code Here

TOP

Related Classes of org.encog.workbench.frames.document.tree.ProjectEGFile

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.