elicito.targets#
Specification of target quantities and elicited statistics
Functions:
| Name | Description |
|---|---|
computation_elicited_statistics |
Compute the elicited statistics |
computation_target_quantities |
Compute target quantities from model simulations. |
pearson_correlation |
Compute pearson correlation coefficient |
use_custom_functions |
Prepare user-defined functions |
computation_elicited_statistics #
computation_elicited_statistics(
target_quantities: dict[str, Tensor],
targets: list[Target],
) -> dict[str, Tensor]
Compute the elicited statistics
elicited statistics from the target quantities by applying a prespecified elicitation technique.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
target_quantities
|
dict[str, Tensor]
|
Simulated target quantities. |
required |
targets
|
list[Target]
|
List of target quantities |
required |
Returns:
| Name | Type | Description |
|---|---|---|
elicits_res |
dict[str, Tensor]
|
simulated elicited statistics. |
Source code in src/elicito/targets.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | |
computation_target_quantities #
computation_target_quantities(
model_simulations: dict[str, Tensor],
prior_samples: Tensor,
targets: list[Target],
) -> dict[str, Tensor]
Compute target quantities from model simulations.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model_simulations
|
dict[str, Tensor]
|
Simulations from generative model. |
required |
prior_samples
|
Tensor
|
Samples from prior distributions of model parameters. Currently only needed if correlations between model parameters is used as elicitation technique. |
required |
targets
|
list[Target]
|
List of target quantities |
required |
Returns:
| Name | Type | Description |
|---|---|---|
targets_res |
dict[str, Tensor]
|
computed target quantities. |
Source code in src/elicito/targets.py
pearson_correlation #
Compute pearson correlation coefficient
pearson correlation coefficient between model parameters
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
prior_samples
|
Tensor
|
Samples from prior distributions |
required |
Returns:
| Name | Type | Description |
|---|---|---|
correlation |
Tensor
|
Pearson correlation coefficient |
Source code in src/elicito/targets.py
use_custom_functions #
Prepare user-defined functions
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
simulations
|
dict[str, Any]
|
Simulations from generative model |
required |
custom_func
|
Any
|
User-defined function |
required |
Returns:
| Name | Type | Description |
|---|---|---|
custom_function |
Any
|
Custom function with keyword arguments |