You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I looked into the second part of this issue, and do no longer think this part of the code is redundant. The additional check makes sure that if the user specified an inference grid AFTER loading of the predictor class, this change is taken into account. Since the predictor object is loaded and the parameters object is not created beforehand, if you want to use a different inference grid this is the only way (I think?).
The first part is fixed by #562, so I am closing this issue.
mala/mala/network/predictor.py
Lines 37 to 40 in 9b0c4fc
__init__
is the same asmala/mala/network/predictor.py
Lines 65 to 68 in 9b0c4fc
predict_from_qeout()
. Since the former is in the constructor, I think the latter can be skipped.Also here
mala/mala/network/predictor.py
Lines 105 to 110 in 9b0c4fc
self.data.grid_dimension = self.parameters.inference_data_grid
is already performed in__init__
so the check could be changed to something likeNote:
<= 0
would be correct but I gessnp.prod(self.parameters.inference_data_grid)
is never < 0.The text was updated successfully, but these errors were encountered: