Package org.encog.ml.factory

Examples of org.encog.ml.factory.MLTrainFactory.create()


    // second, create the data set   
    MLDataSet dataSet = new BasicMLDataSet(XOR_INPUT, XOR_IDEAL);
   
    // third, create the trainer
    MLTrainFactory trainFactory = new MLTrainFactory()
    MLTrain train = trainFactory.create(method,dataSet,trainerName,trainerArgs);       
    // reset if improve is less than 1% over 5 cycles
    if( method instanceof MLResettable && !(train instanceof ManhattanPropagation) ) {
      train.addStrategy(new RequiredImprovementStrategy(500));
    }
View Full Code Here


    if( method instanceof MLResettable ) {
      this.getAnalyst().setMethod(method);
    }


    MLTrain train = factory.create(method, trainingSet, type, args);

    if (this.kfold > 0) {
      train = new CrossValidationKFold(train, this.kfold);
    }
View Full Code Here

    if( method instanceof MLResettable ) {
      this.getAnalyst().setMethod(method);
    }


    MLTrain train = factory.create(method, trainingSet, type, args);

    if ( getKfold() > 0) {
      train = new CrossValidationKFold(train, getKfold() );
    }
View Full Code Here

    if (this.trainingType == null) {
      throw new EncogError(
          "Please call selectTraining first to choose how to train.");
    }
    MLTrainFactory trainFactory = new MLTrainFactory();
    MLTrain train = trainFactory.create(method, dataset, this.trainingType,
        this.trainingArgs);
    return train;
  }

  /**
 
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.