ctheodoris
commited on
Commit
•
b07f4b1
1
Parent(s):
42053dc
save pval
Browse files
geneformer/classifier_utils.py
CHANGED
@@ -306,7 +306,7 @@ def balance_attr_splits(
|
|
306 |
exp_counts[cat] * sum(obs) / sum(exp_counts.values())
|
307 |
for cat in all_categ
|
308 |
]
|
309 |
-
chisquare(f_obs=obs, f_exp=exp).pvalue
|
310 |
train_attr_counts = str(obs_counts).strip("Counter(").strip(")")
|
311 |
eval_attr_counts = str(exp_counts).strip("Counter(").strip(")")
|
312 |
df_vals += [train_attr_counts, eval_attr_counts, pval]
|
|
|
306 |
exp_counts[cat] * sum(obs) / sum(exp_counts.values())
|
307 |
for cat in all_categ
|
308 |
]
|
309 |
+
pval = chisquare(f_obs=obs, f_exp=exp).pvalue
|
310 |
train_attr_counts = str(obs_counts).strip("Counter(").strip(")")
|
311 |
eval_attr_counts = str(exp_counts).strip("Counter(").strip(")")
|
312 |
df_vals += [train_attr_counts, eval_attr_counts, pval]
|