Examples of process()


Examples of org.encog.app.analyst.csv.AnalystEvaluateRawCSV.process()

    getAnalyst().setCurrentQuantTask(eval);
    eval.setReport(new AnalystReportBridge(getAnalyst()));
    eval.analyze(getAnalyst(), evalFile, headers, getProp()
        .getPropertyCSVFormat(
            ScriptProperties.SETUP_CONFIG_CSV_FORMAT));
    eval.process(outputFile, method);
    getAnalyst().setCurrentQuantTask(null);
    return eval.shouldStop();
  }

  /**
 
View Full Code Here

Examples of org.encog.app.analyst.csv.TimeSeriesUtil.process()

        double[] output = AnalystNormalizeCSV.extractFields(
            this.analyst, analystHeaders, csv, totalCount,
            false);

        if (series.getTotalDepth() > 1) {
          output = series.process(output);
        }

        MLDataPair pair = BasicMLDataPair.createPair(inputCount,outputCount);
        for(int i=0;i<inputCount;i++) {
          pair.getInput().setData(i, output[i]);
View Full Code Here

Examples of org.encog.app.analyst.csv.balance.BalanceCSV.process()

  public void testBalanceCSVHeaders() throws IOException {
    generateTestFile(true);
    BalanceCSV norm = new BalanceCSV();
    norm.analyze(INPUT_NAME, true, CSVFormat.ENGLISH);
    norm.process(OUTPUT_NAME, 1, 2);

    BufferedReader tr = new BufferedReader(new FileReader(OUTPUT_NAME));

    Assert.assertEquals("\"a\",\"b\"", tr.readLine());
    Assert.assertEquals("one,1", tr.readLine());
View Full Code Here

Examples of org.encog.app.analyst.csv.filter.FilterCSV.process()

    {
        generateTestFileHeadings(true);
        FilterCSV norm = new FilterCSV();
        norm.analyze(INPUT_NAME, true, CSVFormat.ENGLISH);
        norm.exclude(1, "1");
        norm.process(OUTPUT_NAME);

        BufferedReader tr = new BufferedReader(new FileReader(OUTPUT_NAME));
        Assert.assertEquals("\"a\",\"b\"", tr.readLine());
        Assert.assertEquals("four,2", tr.readLine());
        tr.close();
View Full Code Here

Examples of org.encog.app.analyst.csv.process.AnalystProcess.process()

    process.setScript(getScript());
    getAnalyst().setCurrentQuantTask(process);
    process.setReport(new AnalystReportBridge(getAnalyst()));
    final boolean headers = getScript().expectInputHeaders(sourceID);
    process.analyze(sourceFile, headers, format);
    process.process(targetFile);
    getAnalyst().setCurrentQuantTask(null);
    return process.shouldStop();
  }

  /**
 
View Full Code Here

Examples of org.encog.app.analyst.csv.segregate.SegregateCSV.process()

        generateTestFileHeadings(true);
        SegregateCSV norm = new SegregateCSV();
        norm.getTargets().add(new SegregateTargetPercent(OUTPUT1_NAME, 75));
        norm.getTargets().add(new SegregateTargetPercent(OUTPUT2_NAME, 25));
        norm.analyze(INPUT_NAME, true, CSVFormat.ENGLISH);           
        norm.process();

        BufferedReader tr = new BufferedReader(new FileReader(OUTPUT1_NAME));
        Assert.assertEquals("\"a\",\"b\"",tr.readLine());
        Assert.assertEquals("one,1",tr.readLine());
        Assert.assertEquals("two,2",tr.readLine());
View Full Code Here

Examples of org.encog.app.analyst.csv.shuffle.ShuffleCSV.process()

    public void testShuffleHeaders() throws IOException
    {
        generateTestFileHeadings(true);
        ShuffleCSV norm = new ShuffleCSV();
        norm.analyze(INPUT_NAME, true, CSVFormat.ENGLISH);
        norm.process(OUTPUT_NAME);

        BufferedReader tr = new BufferedReader(new FileReader(OUTPUT_NAME));
        String line;
        Map<String, Integer> list = new HashMap<String, Integer>();
View Full Code Here

Examples of org.encog.app.analyst.csv.sort.SortCSV.process()

    public void testSortHeaders() throws IOException
    {
        generateTestFileHeadings(true);
        SortCSV norm = new SortCSV();
        norm.getSortOrder().add(new SortedField(1,SortType.SortString,true));
        norm.process(INPUT_NAME,OUTPUT_NAME,true,CSVFormat.ENGLISH);

        BufferedReader tr = new BufferedReader(new FileReader(OUTPUT_NAME));

        Assert.assertEquals("\"a\",\"b\"", tr.readLine());
        Assert.assertEquals("\"one\",1", tr.readLine());
View Full Code Here

Examples of org.encog.app.quant.indicators.ProcessIndicators.process()

        ProcessIndicators norm = new ProcessIndicators();
        norm.analyze(INPUT_NAME, true, CSVFormat.ENGLISH);
        norm.addColumn(new MovingAverage(3, true));
        norm.addColumn(new BestClose(3,true));
        norm.getColumns().get(0).setOutput(true);
        norm.process(OUTPUT_NAME);

        BufferedReader tr = new BufferedReader(new FileReader(OUTPUT_NAME));

        Assert.assertEquals("\"date\",\"close\",\"MovAvg\",\"PredictBestClose\"", tr.readLine());
        Assert.assertEquals("20100103,3,2,6", tr.readLine());
View Full Code Here

Examples of org.encog.app.quant.ninja.NinjaFileConvert.process()

    public void testConvert() throws IOException
    {
        generateTestFileHeadings(true);
        NinjaFileConvert norm = new NinjaFileConvert();
        norm.analyze(INPUT_NAME, true, CSVFormat.ENGLISH);
        norm.process(OUTPUT_NAME);

        BufferedReader tr = new BufferedReader(new FileReader(OUTPUT_NAME));

        Assert.assertEquals("20100101 000000;10;12;8;9;1000",tr.readLine());
        Assert.assertEquals("20100102 000000;9;17;7;15;1000", tr.readLine());
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.