fitting
xsb_fluc.fitting.mean_model
¶
MeanModelFitter
¶
This class is meant to fit a 3D model using the X-ray surface
Source code in src/xsb_fluc/fitting/mean_model.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 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 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
|
prior
property
¶
Default priors distributions.
__init__(cluster, n_samples=1000, n_warmup=1000, n_chains=1, model=None, max_tree_depth=10, ref_params=None)
¶
Constructor for the MeanModelFitter which fit the mean model using MCMC
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cluster
|
Cluster
|
the cluster object which will be fitted |
required |
n_samples
|
int
|
the number of samples |
1000
|
n_warmup
|
int
|
the number of warmup samples |
1000
|
n_chains
|
int
|
the number of chains |
1
|
model
|
Literal[None, 'beta', 'circ']
|
the model to be fitted. Leave None to use the best. |
None
|
max_tree_depth
|
int
|
the maximum recursion depth of the MCMC. Lower to 7 or 5 if too slow. |
10
|
ref_params
|
dict
|
the parameters where the chain should be started. |
None
|
Source code in src/xsb_fluc/fitting/mean_model.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
|
fit()
¶
Perform the fitting routine.
Returns:
Type | Description |
---|---|
InferenceData
|
An az.InferenceData object containing the fit results. |
Source code in src/xsb_fluc/fitting/mean_model.py
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
|
model()
¶
The numpyro model which is used in the fitting routine.
Source code in src/xsb_fluc/fitting/mean_model.py
120 121 122 123 124 125 126 127 128 129 |
|