Package org.encog.app.analyst.wizard

Examples of org.encog.app.analyst.wizard.AnalystWizard


    File analystFile = new File(dir,"iris.ega");
    File rawFile = new File(dir,"iris_raw.csv");
   
    EncogAnalyst encog = new EncogAnalyst();
    encog.addAnalystListener(new ConsoleAnalystListener());
    AnalystWizard wiz = new AnalystWizard(encog);
   
    wiz.wizard(url, analystFile, rawFile, false, AnalystFileFormat.DECPNT_COMMA);

    encog.executeTask("task-full");
   
    encog.save(analystFile);
   
View Full Code Here


    File analystFile = new File(dir,"forest.ega");
    File rawFile = new File(dir,"forest_raw.csv");
   
    EncogAnalyst encog = new EncogAnalyst();
    encog.addAnalystListener(new ConsoleAnalystListener());
    AnalystWizard wiz = new AnalystWizard(encog);
    wiz.setTaskBalance(true);
   
    wiz.wizard(url, analystFile, rawFile, false, AnalystFileFormat.DECPNT_COMMA);
   
    encog.executeTask("task-full");
   
    encog.save(analystFile);
   
View Full Code Here

   
    File analystFile = TEMP_DIR.createFile("iris.ega");
   
    EncogAnalyst encog = new EncogAnalyst();
    encog.setMaxIteration(1);
    AnalystWizard wiz = new AnalystWizard(encog);   
    wiz.setGoal(AnalystGoal.Classification);
    wiz.wizard(rawFile, true, AnalystFileFormat.DECPNT_COMMA);
   

    encog.executeTask("task-full");
   
    encog.save(analystFile);
View Full Code Here

        File egFile = new File(FileUtil.forceExtension(
            targetCSVFile.toString(), "eg"));

        analyst = new EncogAnalyst();
        AnalystWizard wizard = new AnalystWizard(analyst);
        boolean headers = dialog.getHeaders().getValue();
        AnalystFileFormat format = dialog.getFormat();

        wizard.setMethodType(dialog.getMethodType());
        wizard.setTargetField(dialog.getTargetField());
       
        String m = (String)dialog.getMissing().getSelectedValue();
        if( m.equals("DiscardMissing") ) {
          wizard.setMissing(new DiscardMissing())
        } else if( m.equals("MeanAndModeMissing") ) {
          wizard.setMissing(new MeanAndModeMissing())
        } else if( m.equals("NegateMissing") ) {
          wizard.setMissing(new NegateMissing())
        } else {
          wizard.setMissing(new DiscardMissing());
        }
       
        wizard.setGoal(dialog.getGoal());
        wizard.setLagWindowSize(dialog.getLagCount().getValue());
        wizard.setLeadWindowSize(dialog.getLeadCount().getValue());
        wizard.setIncludeTargetField(dialog.getIncludeTarget()
            .getValue());
        wizard.setRange(dialog.getRange());
        wizard.setTaskNormalize(dialog.getNormalize().getValue());
        wizard.setTaskRandomize(dialog.getRandomize().getValue());
        wizard.setTaskSegregate(dialog.getSegregate().getValue());
        wizard.setTaskBalance(dialog.getBalance().getValue());
        wizard.setTaskCluster(dialog.getCluster().getValue());

        wizard.wizard(targetCSVFile, headers, format);

      } catch (EncogError e) {
        EncogWorkBench.displayError("Error Generating Analyst Script",
            e);
      } finally {
View Full Code Here

        if (!compile())
          return;

        EncogWorkBench.getInstance().getMainWindow().beginWait();
        AnalystWizard wizard = new AnalystWizard(this.analyst);
        wizard.reanalyze();

        ByteArrayOutputStream os = new ByteArrayOutputStream();
        analyst.save(os);
        os.close();
View Full Code Here

    this.encogAnalyst = new EncogAnalyst();
  }
 
  public void wizard(AnalystGoal goal, WizardMethodType methodType, boolean headers) {
    this.encogAnalyst.setMaxIteration(AnalystTestingUtility.MAX_ITERATIONS);
    AnalystWizard wiz = new AnalystWizard(this.encogAnalyst);   
    wiz.setGoal(goal);
    wiz.setMethodType(methodType);
    wiz.setEvidenceSegements(3);
    wiz.wizard(rawFile, headers, format);
   
    this.encogAnalyst.save(analystFile);
    this.encogAnalyst.load(analystFile);
  }
View Full Code Here

TOP

Related Classes of org.encog.app.analyst.wizard.AnalystWizard

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.