https://github.com/GPflow/GPflow
Revision 5b16a12e3a21e1435badfe99c4821444260df2fa authored by John Bradshaw on 23 October 2017, 10:32:06 UTC, committed by John Bradshaw on 23 October 2017, 10:32:06 UTC
the future. * EP while loop broken out and made into seperate class to allow it to be easy to reuse elsewhere. Tidy up of the variable names and made more general. Tests written to check that it can recover the true solution when the approximating factors have the same solution as the true solution. * Central moment functions moved out of EP class and live elsewhere. Step function, Gaussian and Gaussian CDF moments implemented all with tests. * Likelihoods now are associated with a method that returns their central moments generator function. Only implemented for Bernoulli but this allows one to store moment logic with the likelihood function which is more where it belongs. * Updated the VGP versus EP binary classification example script to use this new source structure. This has remained in the docs so have not written tests for this part.
1 parent f46eeb3
Tip revision: 5b16a12e3a21e1435badfe99c4821444260df2fa authored by John Bradshaw on 23 October 2017, 10:32:06 UTC
Refactor of EP implementation to modularise and make more extensible in
Refactor of EP implementation to modularise and make more extensible in
Tip revision: 5b16a12
.coveragerc
[report]
exclude_lines =
pragma: no cover
def __repr__
def __str__
def _repr_html_
def _html_table_rows
if self.debug:
if settings.DEBUG
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
print
Computing file changes ...