* {@inheritDoc}
*/
@Override
public Object read(final InputStream is) {
final EncogReadHelper in = new EncogReadHelper(is);
EncogFileSection section;
final BasicMLDataSet samples = new BasicMLDataSet();
Map<String, String> networkParams = null;
PNNKernelType kernel = null;
PNNOutputMode outmodel = null;
int inputCount = 0;
int outputCount = 0;
double error = 0;
double[] sigma = null;
while ((section = in.readNextSection()) != null) {
if (section.getSectionName().equals("PNN")
&& section.getSubSectionName().equals("PARAMS")) {
networkParams = section.parseParams();
}
if (section.getSectionName().equals("PNN")