Search in sources :

Example 1 with FullyConjugateMultivariateTraitLikelihood

use of dr.evomodel.continuous.FullyConjugateMultivariateTraitLikelihood in project beast-mcmc by beast-dev.

the class LatentFactorHamiltonianMCParser method parseXMLObject.

@Override
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
    LatentFactorModel lfm = (LatentFactorModel) xo.getChild(LatentFactorModel.class);
    FullyConjugateMultivariateTraitLikelihood tree = (FullyConjugateMultivariateTraitLikelihood) xo.getChild(FullyConjugateMultivariateTraitLikelihood.class);
    double weight = xo.getDoubleAttribute(WEIGHT);
    CoercionMode mode = CoercionMode.parseMode(xo);
    int nSteps = xo.getIntegerAttribute(N_STEPS);
    double stepSize = xo.getDoubleAttribute(STEP_SIZE);
    double momentumSd = xo.getDoubleAttribute(MOMENTUM_SD);
    return new LatentFactorHamiltonianMC(lfm, tree, weight, mode, stepSize, nSteps, momentumSd);
}
Also used : LatentFactorHamiltonianMC(dr.inference.operators.hmc.deprecated.LatentFactorHamiltonianMC) LatentFactorModel(dr.inference.model.LatentFactorModel) CoercionMode(dr.inference.operators.CoercionMode) FullyConjugateMultivariateTraitLikelihood(dr.evomodel.continuous.FullyConjugateMultivariateTraitLikelihood)

Aggregations

FullyConjugateMultivariateTraitLikelihood (dr.evomodel.continuous.FullyConjugateMultivariateTraitLikelihood)1 LatentFactorModel (dr.inference.model.LatentFactorModel)1 CoercionMode (dr.inference.operators.CoercionMode)1 LatentFactorHamiltonianMC (dr.inference.operators.hmc.deprecated.LatentFactorHamiltonianMC)1