Package org.encog.workbench.dialogs.config

Source Code of org.encog.workbench.dialogs.config.EncogConfigDialog

/*
* Encog(tm) Workbench v3.0
* http://www.heatonresearch.com/encog/
* http://code.google.com/p/encog-java/
* Copyright 2008-2011 Heaton Research, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*  
* For more information on Heaton Research copyrights, licenses
* and trademarks visit:
* http://www.heatonresearch.com/copyright
*/
package org.encog.workbench.dialogs.config;

import java.awt.Frame;
import java.util.ArrayList;
import java.util.List;

import org.encog.workbench.dialogs.common.CheckField;
import org.encog.workbench.dialogs.common.ComboBoxField;
import org.encog.workbench.dialogs.common.DoubleField;
import org.encog.workbench.dialogs.common.EncogPropertiesDialog;
import org.encog.workbench.dialogs.common.IntegerField;

public class EncogConfigDialog extends EncogPropertiesDialog {

  private DoubleField defaultError;
  private IntegerField threadCount;
  private CheckField useOpenCL;
  private ComboBoxField errorCalculation;
 
  public EncogConfigDialog(Frame owner) {
    super(owner);
    List<String> errorMethods = new ArrayList<String>();
   
    errorMethods.add("Root Mean Square");
    errorMethods.add("Mean Square Error");
    setTitle("Encog Configuration");
    setSize(500,300);
    beginTab("Training");
    addProperty(this.defaultError = new DoubleField("default error","Default Error Percent",true,0,100));
    addProperty(this.errorCalculation = new ComboBoxField("error calculation", "Error Calculation", true, errorMethods));
    addProperty(this.threadCount = new IntegerField("thread count","Thread Count (0=auto)",true,0,10000));
    addProperty(this.useOpenCL = new CheckField("use opencl","Use Graphics Card(GPU)"));
    render();
  }

  public DoubleField getDefaultError() {
    return defaultError;
  }

  public IntegerField getThreadCount() {
    return threadCount;
  }

  public CheckField getUseOpenCL() {
    return useOpenCL;
  }

  public ComboBoxField getErrorCalculation() {
    return errorCalculation;
  }
 
 

}
TOP

Related Classes of org.encog.workbench.dialogs.config.EncogConfigDialog

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.