Skip to content

Commit cd87bf5

Browse files
committed
Code commenting and cleanup
1 parent 94f1c0e commit cd87bf5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

MASW_paper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def funcSurf96(model):
166166
TrueModel, Periods, Dataset, NoiseEstimate, ModelSynthetic = buildMODELSET()
167167
nbModelsBase = 1000
168168
def MixingFunc(iter:int) -> float:
169-
return 1# Always keeping the same proportion of models as the initial prior
169+
return 1# Always keeping the same proportion of models as the initial prior (see paper for argumentation).
170170
if stats:
171171
Prebel, Postbel, PrebelInit, stats = BEL1D.IPR(MODEL=ModelSynthetic,Dataset=Dataset,NoiseEstimate=NoiseEstimate,Parallelization=ppComp,
172172
nbModelsBase=nbModelsBase,nbModelsSample=nbModelsBase,stats=True, Mixing=MixingFunc,
@@ -243,6 +243,7 @@ def MixingFunc(iter:int) -> float:
243243
ax.set_title('Last iteration')
244244
pyplot.show(block=False)
245245

246+
if True: # Compare to DREAM?
246247
# Compare the results to McMC results:
247248
McMC = np.load("./Data/DC/SyntheticBenchmark/DREAM_MASW.npy")
248249
# We consider a burn-in period of 75%:

pyBEL1D/BEL1D.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
def ForwardParallelFun(Model, function, nbVal):
5454
'''This function enables the use of any function to be parralelized.
5555
56-
ATTENTION: The function MUST be pickable by dill.
56+
WARNING: The function MUST be pickable by dill.
5757
5858
Inputs: - Model (np.ndarray): the model for which the forward must be run
5959
- function (lambda function): the function that, when given a model,

0 commit comments

Comments
 (0)