Skip to content

Commit dbe124d

Browse files
committed
fixes
1 parent 5f3414a commit dbe124d

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

coderdata/utils/stats.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@ def plot_2d_respones_metric(
2323
**kwargs: dict
2424
) -> None:
2525

26-
data_plot = prepare_2d_hist_data(
27-
data=data,
28-
metric1=metric1,
29-
metric2=metric2,
26+
data_plot = _prepare_2d_hist_data(
27+
data=data.experiments,
28+
metrics = [metric1, metric2],
3029
)
3130

32-
joint_bins = kwargs.get('joint_bins', default=50)
33-
marginal_bins = kwargs.get('marginal_bins', default=50)
31+
joint_bins = kwargs.get('joint_bins', 50)
32+
marginal_bins = kwargs.get('marginal_bins', 50)
3433

3534
sns.jointplot(
3635
data=data_plot,
@@ -318,7 +317,7 @@ def _filter(
318317
return data_ret
319318

320319

321-
def prepare_2d_hist_data(
320+
def _prepare_2d_hist_data(
322321
data: pd.DataFrame,
323322
metrics: list[str]=[
324323
"aac", "auc", "dss",

0 commit comments

Comments
 (0)