-
Notifications
You must be signed in to change notification settings - Fork 14
Pseudodata in diagonal basis and saving rotation #2455
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
base: master
Are you sure you want to change the base?
Changes from all commits
3cad27a
b7bbae7
5e292d1
6345d0c
5840b3e
14da9ec
de8a4b8
a556445
f80fa3d
1b559b9
c6545b6
e603a48
c73b500
f901290
c82fcb3
5dff26e
b7c8fba
d0022bf
56bae07
f2cb55f
2bb0152
30894a7
9e569e5
bea0509
6f5839f
a8a7f5f
4b9b015
9588962
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -225,6 +225,7 @@ def dataset_inputs_covmat_from_systematics( | |
| covmat = (covmat / sqrt_weights).T / sqrt_weights | ||
| if norm_threshold is not None: | ||
| covmat = regularize_covmat(covmat, norm_threshold=norm_threshold) | ||
|
|
||
| return covmat | ||
|
|
||
|
|
||
|
|
@@ -405,7 +406,7 @@ def dataset_inputs_t0_covmat_from_systematics( | |
| ) | ||
|
|
||
|
|
||
| def dataset_inputs_t0_total_covmat_separate( | ||
| def dataset_load_inputs_t0_total_covmat_separate( | ||
| dataset_inputs_t0_exp_covmat_separate, loaded_theory_covmat | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm quite sure that this was discussed and I forgot. But why aren't we loading the theory covmat anymore?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because this function is now called already during vp-setupfit and there is no stored covmat available to load at that point yet!
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, my bad! |
||
| ): | ||
| """ | ||
|
|
@@ -416,6 +417,17 @@ def dataset_inputs_t0_total_covmat_separate( | |
| return dataset_inputs_t0_exp_covmat_separate + loaded_theory_covmat | ||
|
|
||
|
|
||
| def dataset_inputs_t0_total_covmat_separate( | ||
| dataset_inputs_t0_exp_covmat_separate, nnfit_theory_covmat | ||
| ): | ||
| """ | ||
| Function to compute the covmat to be used for the sampling by make_replica. | ||
| In this case the t0 prescription is used for the experimental covmat and the multiplicative | ||
| errors are separated. Moreover, the theory covmat is added to experimental covmat. | ||
| """ | ||
| return dataset_inputs_t0_exp_covmat_separate + nnfit_theory_covmat | ||
|
|
||
|
|
||
| def dataset_inputs_t0_exp_covmat_separate( | ||
| dataset_inputs_loaded_cd_with_cuts, | ||
| *, | ||
|
|
@@ -440,7 +452,9 @@ def dataset_inputs_t0_exp_covmat_separate( | |
| return covmat | ||
|
|
||
|
|
||
| def dataset_inputs_total_covmat_separate(dataset_inputs_exp_covmat_separate, loaded_theory_covmat): | ||
| def dataset_load_inputs_total_covmat_separate( | ||
| dataset_inputs_exp_covmat_separate, loaded_theory_covmat | ||
| ): | ||
| """ | ||
| Function to compute the covmat to be used for the sampling by make_replica. | ||
| In this case the t0 prescription is not used for the experimental covmat and the multiplicative | ||
|
|
@@ -449,6 +463,15 @@ def dataset_inputs_total_covmat_separate(dataset_inputs_exp_covmat_separate, loa | |
| return dataset_inputs_exp_covmat_separate + loaded_theory_covmat | ||
|
|
||
|
|
||
| def dataset_inputs_total_covmat_separate(dataset_inputs_exp_covmat_separate, nnfit_theory_covmat): | ||
| """ | ||
| Function to compute the covmat to be used for the sampling by make_replica. | ||
| In this case the t0 prescription is not used for the experimental covmat and the multiplicative | ||
| errors are separated. Moreover, the theory covmat is added to experimental covmat. | ||
| """ | ||
| return dataset_inputs_exp_covmat_separate + nnfit_theory_covmat | ||
|
|
||
|
|
||
| def dataset_inputs_exp_covmat_separate( | ||
| dataset_inputs_loaded_cd_with_cuts, | ||
| *, | ||
|
|
@@ -472,7 +495,17 @@ def dataset_inputs_exp_covmat_separate( | |
| return covmat | ||
|
|
||
|
|
||
| def dataset_inputs_t0_total_covmat(dataset_inputs_t0_exp_covmat, loaded_theory_covmat): | ||
| def dataset_inputs_t0_total_covmat(dataset_inputs_t0_exp_covmat, nnfit_theory_covmat): | ||
| """ | ||
| Function to compute the covmat to be used for the sampling by make_replica and for the chi2 | ||
| by fitting_data_dict. In this case the t0 prescription is used for the experimental covmat | ||
| and the multiplicative errors are included in it. Moreover, the theory covmat is added to experimental covmat. | ||
| """ | ||
|
|
||
| return dataset_inputs_t0_exp_covmat + nnfit_theory_covmat | ||
|
|
||
|
|
||
| def dataset_load_inputs_t0_total_covmat(dataset_inputs_t0_exp_covmat, loaded_theory_covmat): | ||
| """ | ||
| Function to compute the covmat to be used for the sampling by make_replica and for the chi2 | ||
| by fitting_data_dict. In this case the t0 prescription is used for the experimental covmat | ||
|
|
@@ -502,10 +535,11 @@ def dataset_inputs_t0_exp_covmat( | |
| dataset_inputs_t0_predictions, | ||
| False, | ||
| ) | ||
|
|
||
| return covmat | ||
|
|
||
|
|
||
| def dataset_inputs_total_covmat(dataset_inputs_exp_covmat, loaded_theory_covmat): | ||
| def dataset_load_inputs_total_covmat(dataset_inputs_exp_covmat, loaded_theory_covmat): | ||
| """ | ||
| Function to compute the covmat to be used for the sampling by make_replica and for the chi2 | ||
| by fitting_data_dict. In this case the t0 prescription is not used for the experimental covmat | ||
|
|
@@ -514,6 +548,15 @@ def dataset_inputs_total_covmat(dataset_inputs_exp_covmat, loaded_theory_covmat) | |
| return dataset_inputs_exp_covmat + loaded_theory_covmat | ||
|
|
||
|
|
||
| def dataset_inputs_total_covmat(dataset_inputs_exp_covmat, nnfit_theory_covmat): | ||
| """ | ||
| Function to compute the covmat to be used for the sampling by make_replica and for the chi2 | ||
| by fitting_data_dict. In this case the t0 prescription is not used for the experimental covmat | ||
| and the multiplicative errors are included in it. Moreover, the theory covmat is added to experimental covmat. | ||
| """ | ||
| return dataset_inputs_exp_covmat + nnfit_theory_covmat | ||
|
|
||
|
|
||
| def dataset_inputs_exp_covmat( | ||
| dataset_inputs_loaded_cd_with_cuts, | ||
| *, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.