-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding heteroskedastic tests #1508
Adding heteroskedastic tests #1508
Conversation
tests/gpflow/likelihoods/test_heteroskedastic_constant_variance.py
Outdated
Show resolved
Hide resolved
tests/gpflow/likelihoods/test_heteroskedastic_constant_variance.py
Outdated
Show resolved
Hide resolved
tests/gpflow/likelihoods/test_heteroskedastic_constant_variance.py
Outdated
Show resolved
Hide resolved
tests/gpflow/likelihoods/test_heteroskedastic_constant_variance.py
Outdated
Show resolved
Hide resolved
tests/gpflow/likelihoods/test_heteroskedastic_constant_variance.py
Outdated
Show resolved
Hide resolved
) | ||
|
||
|
||
@pytest.mark.skip("Currently broken as it returns the sum over outputs when given multiple outputs") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to fix the code to make this test pass or merge it as is and I can change the code (and reactivate the test)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this would be easier for you to fix, than for me to fix. I would rather merge it as is, such that you can change the code and reactivate the test
Co-authored-by: st-- <st--@users.noreply.github.com>
The type-check issues in circleci are the same issues as seen in the source branch PR: #1455 |
* HeteroskedasticLikelihood base class draft * fixup * cleanup * cleanup heteroskedastic * multioutput likelihood WIP * Notebook exemplifying HeteroskedasticTFPDistribution usage (#1462) * fixes * typo fix; reshaping fix * notebook showing how to use HeteroskedasticTFPDistribution likelihood * converting to .pct.py format * removed .ipynb * better descriptions * black auto-formatting Co-authored-by: Gustavo Carvalho <gustavo.carvalho@delfosim.com> * note and bugfix * add comment * Adding heteroskedastic tests (#1508) These tests ensure that heteroskedastic likelihood with a constant variance, will give the same results as a Gaussian likelihood with the same variance. * testing * added QuadratureLikelihood to base, refactored ScalarLikelihood to use it * fix * using the first dimension to hold the quadrature summation * adapting ndiagquad wrapper * merged with gustavocmv/quadrature-change-shape * removed unecessary tf.init_scope * removed print and tf.print * removed print and tf.print * Type annotations Co-authored-by: Vincent Dutordoir <dutordoirv@gmail.com> * Work * Fix test * Remove multioutput from PR * Fix notebook * Add student t test * More tests * Copyright * Removed NDiagGHQuadratureLikelihood class in favor of non-abstract QuadratureLikelihood * _set_latent_and_observation_dimension_eagerly * n_gh ---> num_gauss_hermite_points * removed NDiagGHQuadratureLikelihood from test * black * bugfix * removing NDiagGHQuadratureLikelihood from test * fixed bad commenting * black * refactoring scalar likelihood * adding dtype casts to quadrature * black * small merging fixes * DONE: swap n_gh for num_gauss_hermite_points * black Co-authored-by: ST John <st@prowler.io> Co-authored-by: gustavocmv <47801305+gustavocmv@users.noreply.github.com> Co-authored-by: Gustavo Carvalho <gustavo.carvalho@delfosim.com> Co-authored-by: st-- <st--@users.noreply.github.com> Co-authored-by: joshuacoales-pio <47976939+joshuacoales-pio@users.noreply.github.com>
This adds some tests to @st-- 's heteroskedastic branch.
These tests ensure that heteroskedastic likelihood with a constant variance, will give the same results as a Gaussian likelihood with the same variance.
3 of these tests are failing and currently skipped.
conditional_mean()
andconditional_variance()
tests are skipped because they are not implemented in Heteroskedastic likelihood, which cause the tests to fail. I've asked in GPFlow slack as to whether anyone uses these directly.predict_log_density()
test is skipped because it does not return the same result, as it returns the sum over outputs when given multiple outputs. I have also asked about this in GPFlow slack.