Skip to content

Commit

Permalink
set top_k to 5 in SAS to be consistent (#2550)
Browse files Browse the repository at this point in the history
* set top_k to 5 in SAS to be consistent

* set top_k to 5 in SAS to be consistent
  • Loading branch information
ClaMnc authored May 16, 2022
1 parent 00aa1f4 commit 2b11981
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions tutorials/Tutorial5_Evaluation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
"**Runtime -> Change Runtime type -> Hardware accelerator -> GPU**\n",
"\n",
"<img src=\"https://raw.githubusercontent.com/deepset-ai/haystack/master/docs/img/colab_gpu_runtime.jpg\">"
],
"outputs": []
]
},
{
"cell_type": "code",
Expand Down Expand Up @@ -992,7 +991,7 @@
"outputs": [],
"source": [
"advanced_eval_result = pipeline.eval(\n",
" labels=eval_labels, params={\"Retriever\": {\"top_k\": 1}}, sas_model_name_or_path=\"cross-encoder/stsb-roberta-large\"\n",
" labels=eval_labels, params={\"Retriever\": {\"top_k\": 5}}, sas_model_name_or_path=\"cross-encoder/stsb-roberta-large\"\n",
")\n",
"\n",
"metrics = advanced_eval_result.calculate_metrics()\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/Tutorial5_Evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def tutorial5_evaluation():

advanced_eval_result = pipeline.eval(
labels=eval_labels,
params={"Retriever": {"top_k": 1}},
params={"Retriever": {"top_k": 5}},
sas_model_name_or_path="cross-encoder/stsb-roberta-large",
)

Expand Down

0 comments on commit 2b11981

Please sign in to comment.