Search in sources :

Example 1 with CrossValidationProvider

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);
}
Also used : CrossValidationProvider(dr.inference.model.CrossValidationProvider)

Aggregations

CrossValidationProvider (dr.inference.model.CrossValidationProvider)1