Examples of ProjectEGFile


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

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

    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

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

    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

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

        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
Copyright © 2018 www.massapi.com. 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.