public void loadConfig() {
try {
String home = System.getProperty("user.home");
File file = new File(home, EncogWorkBench.CONFIG_FILENAME);
InputStream is = new FileInputStream(file);
EncogReadHelper in = new EncogReadHelper(is);
// read the config file
EncogFileSection section;
while( (section = in.readNextSection()) != null ) {
if( section.getSectionName().equals("ENCOG") && section.getSubSectionName().equals("TRAINING") ) {
Map<String,String> params = section.parseParams();
this.defaultError = EncogFileSection.parseDouble(params, EncogWorkBenchConfig.PROPERTY_DEFAULT_ERROR);
this.threadCount = EncogFileSection.parseInt(params, EncogWorkBenchConfig.PROPERTY_THREAD_COUNT);
this.useOpenCL = EncogFileSection.parseInt(params, EncogWorkBenchConfig.PROPERTY_THREAD_COUNT)>0;