final int input = egb.getInputCount();
final int ideal = egb.getIdealCount();
egb.close();
final MLMethodFactory factory = new MLMethodFactory();
final MLMethod obj = factory.create(type, arch, input, ideal);
if (obj instanceof BayesianNetwork) {
final String query = getProp().getPropertyString(
ScriptProperties.ML_CONFIG_QUERY);
((BayesianNetwork) obj).defineClassificationStructure(query);