Skip to content

Commit

Permalink
fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinL committed Apr 23, 2024
1 parent 54e6597 commit 2e237de
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/charts/accuracy_chart_from_labels_table.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"df_labels = splink_dataset_labels.fake_1000_labels\n",
"labels_table = linker.register_labels_table(df_labels)\n",
"\n",
"linker.accuracy_chart_from_labels_table(labels_table, add_metrics=['f1'])"
"linker.accuracy_analysis_from_labels_table(labels_table, output_type=\"accuracy\", add_metrics=['f1'])"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"df_labels = splink_dataset_labels.fake_1000_labels\n",
"labels_table = linker.register_labels_table(df_labels)\n",
"\n",
"linker.threshold_selection_tool_from_labels_table(labels_table, add_metrics=['f1'])"
"linker.accuracy_analysis_from_labels_table(labels_table, add_metrics=['f1'])"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tests/test_full_example_duckdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def test_full_example_duckdb(tmp_path):

register_roc_data(linker)

linker.threshold_selection_tool_from_labels_table("labels")
linker.accuracy_analysis_from_labels_table("labels")

df_clusters = linker.cluster_pairwise_predictions_at_threshold(df_predict, 0.1)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_full_example_postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_full_example_postgres(tmp_path, pg_engine):

register_roc_data(linker)

linker.threshold_selection_tool_from_labels_table("labels")
linker.accuracy_analysis_from_labels_table("labels")

df_clusters = linker.cluster_pairwise_predictions_at_threshold(df_predict, 0.1)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_full_example_spark.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def spark_csv_read(x):
)
register_roc_data(linker)

linker.threshold_selection_tool_from_labels_table("labels")
linker.accuracy_analysis_from_labels_table("labels")

record = {
"unique_id": 1,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_full_example_sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_full_example_sqlite(tmp_path):

register_roc_data(linker)

linker.threshold_selection_tool_from_labels_table("labels")
linker.accuracy_analysis_from_labels_table("labels")


@mark_with_dialects_including("sqlite")
Expand Down

0 comments on commit 2e237de

Please sign in to comment.