/** * Select the method to use. * @param dataset The dataset. * @param methodType The type of method. * @param methodArgs The method arguments. * @param trainingType The training type. * @param trainingArgs The training arguments. */ public void selectMethod(VersatileMLDataSet dataset, String methodType, String methodArgs, String trainingType, String trainingArgs) { if (!this.methodConfigurations.containsKey(methodType)) { throw new EncogError("Don't know how to autoconfig method: " + methodType); } this.methodType = methodType; this.methodArgs = methodArgs; this.config = this.methodConfigurations.get(methodType); dataset.getNormHelper().setStrategy( this.methodConfigurations.get(methodType) .suggestNormalizationStrategy(dataset, methodArgs)); }
/** * Select the method to create. * @param dataset The dataset. * @param methodType The method type. */ public void selectMethod(VersatileMLDataSet dataset, String methodType) { if (!this.methodConfigurations.containsKey(methodType)) { throw new EncogError("Don't know how to autoconfig method: " + methodType); } this.config = this.methodConfigurations.get(methodType); this.methodType = methodType; this.methodArgs = this.config.suggestModelArchitecture(dataset); dataset.getNormHelper().setStrategy( this.config.suggestNormalizationStrategy(dataset, methodArgs)); }