use of dr.inference.model.CrossValidationProvider in project beast-mcmc by beast-dev.
the class CrossValidatorParser method parseXMLObject.
@Override
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
CrossValidationProvider provider = (CrossValidationProvider) xo.getChild(CrossValidationProvider.class);
boolean logSum = xo.getAttribute(LOG_SUM, false);
if (logSum)
return new CrossValidationProvider.CrossValidatorSum(provider);
return new CrossValidationProvider.CrossValidator(provider);
}
Aggregations