Calculates expectation of the latent variable, given data and model parameters.

1 | ```
z.expectation(model, X, Y = NULL)
``` |

`model` |
DependencyModel |

`X` |
Data set X. |

`Y` |
Optional, second data set. Used in dependency models where two co-occurring observations are assumed to stem from a shared latent variable. |

Returns a matrix (latent features x samples).

Leo Lahti leo.lahti@iki.fi

See citation("dmt") for references.

1 2 3 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.