Package org.encog.ml

Examples of org.encog.ml.MLRegression


   * Calculate the genome's score.
   * @param genome The genome to calculate for.
   * @return The calculated score.
   */
  public final double calculateScore(final Genome genome) {
    final MLRegression network = (MLRegression) genome.getOrganism();
    return this.calculateScore.calculateScore(network);
  }
View Full Code Here


    final File resourceFile = getScript().resolveFilename(resourceID);

    final File outputFile = getAnalyst().getScript().resolveFilename(
        outputID);

    final MLRegression method = (MLRegression) EncogDirectoryPersistence
        .loadObject(resourceFile);

    final boolean headers = getScript().expectInputHeaders(evalID);

    final AnalystEvaluateRawCSV eval = new AnalystEvaluateRawCSV();
View Full Code Here

   
    if( !(m instanceof MLRegression) ) {
      throw new AnalystError("The evaluate raw command can only be used with regression.");
    }

    final MLRegression method = (MLRegression)m;

    final boolean headers = getScript().expectInputHeaders(evalID);

    final AnalystEvaluateRawCSV eval = new AnalystEvaluateRawCSV();
    eval.setScript(getScript());
View Full Code Here

TOP

Related Classes of org.encog.ml.MLRegression

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.