Skip to content

Commit 360adcd

Browse files
refixed in b init group-wise means
this got lost in latest merge of Florian's initialisation clean up. groupwise means can only be carried over from a init if loc and scale model are the same. I annotated this in the code, right now it is always recomputed.
1 parent 5e8c0d1 commit 360adcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

batchglm/train/tf/nb_glm/estimator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ def __init__(
810810
design_scale=input_data.design_scale,
811811
constraints=input_data.constraints_scale,
812812
size_factors=size_factors_init,
813-
groupwise_means=groupwise_means,
813+
groupwise_means=None, # Could only use groupwise_means from a init if design_loc and design_scale were the same.
814814
link_fn=lambda r: np.log(np_clip_param(r, "r"))
815815
)
816816

0 commit comments

Comments
 (0)