Skip to content

Commit ad92892

Browse files
committed
one more debug line
1 parent ef78215 commit ad92892

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

coderbuild/utils/calc_pdx_metrics.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,14 +320,19 @@ def lmm(time, volume, treatment, drug_name):
320320
print("[DBG][LMM] volume<=0:", (data['volume']<=0).sum(), " nonfinite log_volume:", (~np.isfinite(np.log(data['volume']))).sum())
321321
print("[DBG][LMM] groups:", data['model_id'].nunique())
322322

323+
print("[DBG][LMM] DATA:", data)
323324
fit = model.fit()
324325

326+
print("[DBG][LMM] fit:", fit.params)
327+
325328
# Get the coefficient for the interaction term 'time:exp_type'
326329
#interaction_term = 'time:exp_type'
327330
# if interaction_term in fit.params:
328331
# time_coef_value = fit.params['time']
329332
#print(fit.params)
330333
i_coef_value = fit.params['time:exp_type[T.'+drug_name+']']
334+
335+
print("[DBG][LMM] i_coef_value:", i_coef_value)
331336
#i_coef_value = fit.params['time:exp_type['+drug_name+']']
332337
# else:
333338
# coef_value = None # Handle the case when the interaction term is not present

0 commit comments

Comments
 (0)