Skip to content

Commit 999f529

Browse files
Julien RousselJulien Roussel
authored andcommitted
print removed
1 parent ef158a9 commit 999f529

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

qolmat/benchmark/comparator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def get_errors(
6969
for name_metric in self.metrics:
7070
fun_metric = metrics.get_metric(name_metric)
7171
dict_errors[name_metric] = fun_metric(df_origin, df_imputed, df_mask)
72-
print(dict_errors)
7372
errors = pd.concat(dict_errors.values(), keys=dict_errors.keys())
7473
return errors
7574

qolmat/benchmark/metrics.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,15 +1077,10 @@ def pattern_based_weighted_mean_metric(
10771077
continue
10781078
df2_pattern = df2.loc[ind_pattern, list(tup_pattern)]
10791079
df_mask_pattern = df_mask.loc[ind_pattern, list(tup_pattern)]
1080-
print(df1_pattern.shape, df2_pattern.shape)
10811080
weights.append(len(df1_pattern) / len(df1))
10821081
scores.append(metric(df1_pattern, df2_pattern, df_mask_pattern, **kwargs))
10831082
if len(scores) == 0:
10841083
raise NotEnoughSamples(max_num_row, min_n_rows)
1085-
print("scores:")
1086-
print(scores)
1087-
print("weights:")
1088-
print(weights)
10891084
return pd.Series(sum([s * w for s, w in zip(scores, weights)]), index=["All"])
10901085

10911086

tests/benchmark/test_metrics.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ def test_value_error_get_correlation_f_oneway_matrix(
354354
@pytest.mark.parametrize("df_mask", [df_mask])
355355
def test_distance_anticorr(df1: pd.DataFrame, df2: pd.DataFrame, df_mask: pd.DataFrame) -> None:
356356
result = metrics.distance_anticorr(df1, df2, df_mask)
357-
print(result)
358357
np.testing.assert_allclose(result, 1.1e-4, rtol=1e-2)
359358

360359

0 commit comments

Comments
 (0)