generated from ihmeuw-msca/pypkg
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Correct the way we compute variance covariance matrix #26
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
288ed5f
add law of total covariance to super_vcov
zhengp0 742b6e2
add scaled score
zhengp0 65a6040
make score_scaled post process of explore rather than attribute for l…
zhengp0 6050244
change the version to 0.1.1
zhengp0 2fb92f0
change the version of regmod to 0.1.0
zhengp0 b196c2e
temporarily fix the version of jax
zhengp0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,15 +4,21 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "modrover" | ||
version = "0.1.0" | ||
version = "0.1.1" | ||
description = "Model space explorer for inference and prediction" | ||
readme = "README.rst" | ||
requires-python = ">=3.10" | ||
license = { file = "LICENSE" } | ||
authors = [ | ||
{ name = "IHME Math Sciences", email = "[email protected]" }, | ||
] | ||
dependencies = ["regmod==0.1.0", "pplkit", "matplotlib"] | ||
dependencies = [ | ||
"jax[cpu]==0.4.5", | ||
"jaxlib==0.4.4", | ||
"regmod==0.1.0", | ||
"pplkit", | ||
"matplotlib", | ||
] | ||
|
||
[project.optional-dependencies] | ||
test = ["pytest"] | ||
|
@@ -25,4 +31,4 @@ github = "https://github.com/ihmeuw-msca/modrover" | |
project = "modrover" | ||
author = "IHME Math Sciences" | ||
copyright = "2023, IHME Math Sciences" | ||
version = "0.1.0" | ||
version = "0.1.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Just curious what this extra
np.outer
term adds? If you don't mind explainingThere 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.
Hi @davidshaw-uw, the formula is from the law of total (co)variance.
https://en.wikipedia.org/wiki/Law_of_total_covariance
The first term is the expectation of the covariance, and the second term (
np.outer
) is the covariance of the expectation.