+ cols.get(0);
try {
final Class<?> clazz = Class.forName(name);
af = (ActivationFunction) clazz.newInstance();
} catch (final ClassNotFoundException e) {
throw new PersistError(e);
} catch (final InstantiationException e) {
throw new PersistError(e);
} catch (final IllegalAccessException e) {
throw new PersistError(e);
}
for (int i = 0; i < af.getParamNames().length; i++) {
af.setParam(i,
CSVFormat.EG_FORMAT.parse(cols.get(i + 1)));
}
flat.getActivationFunctions()[index++] = af;
}
} else if (section.getSectionName().equals("RBF-NETWORK")
&& section.getSubSectionName().equals("RBF")) {
int index = 0;
final int hiddenCount = flat.getLayerCounts()[1];
final int inputCount = flat.getLayerCounts()[2];
flat.setRBF(new RadialBasisFunction[hiddenCount]);
for (final String line : section.getLines()) {
RadialBasisFunction rbf = null;
final List<String> cols = EncogFileSection
.splitColumns(line);
final String name = "org.encog.mathutil.rbf." + cols.get(0);
try {
final Class<?> clazz = Class.forName(name);
rbf = (RadialBasisFunction) clazz.newInstance();
} catch (final ClassNotFoundException e) {
throw new PersistError(e);
} catch (final InstantiationException e) {
throw new PersistError(e);
} catch (final IllegalAccessException e) {
throw new PersistError(e);
}
rbf.setWidth(CSVFormat.EG_FORMAT.parse(cols.get(1)));
rbf.setPeak(CSVFormat.EG_FORMAT.parse(cols.get(2)));
rbf.setCenters(new double[inputCount]);