diff --git a/scratches/pseco/evaluation/embeddings/n00 Beir Analysis_cosqa.ipynb b/scratches/pseco/evaluation/embeddings/n00 Beir Analysis_cosqa.ipynb index 0cf0ad1..da51de3 100644 --- a/scratches/pseco/evaluation/embeddings/n00 Beir Analysis_cosqa.ipynb +++ b/scratches/pseco/evaluation/embeddings/n00 Beir Analysis_cosqa.ipynb @@ -261,6 +261,54 @@ "print(\"Recall:\", recall_qwen_2)\n", "print(\"Precision:\", precision_qwen_2)" ] +<<<<<<< HEAD +======= + }, + { + "cell_type": "code", + "execution_count": 14, + "id": "1db7d110", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resultados guardados en /home/acano/PycharmProjects/assistance-engine/data/interim/beir_cosqa_results.json\n" + ] + } + ], + "source": [ + "results_data = {\n", + " \"qwen3-0.6B-emb:latest\": {\n", + " \"NDCG\": ndcg,\n", + " \"MAP\": _map,\n", + " \"Recall\": recall,\n", + " \"Precision\": precision,\n", + " },\n", + " \"qwen2.5:1.5b\": {\n", + " \"NDCG\": ndcg_qwen_2,\n", + " \"MAP\": _map_qwen_2,\n", + " \"Recall\": recall_qwen_2,\n", + " \"Precision\": precision_qwen_2,\n", + " }\n", + "}\n", + " \n", + "output_file = \"/home/acano/PycharmProjects/assistance-engine/data/interim/beir_cosqa_results.json\"\n", + "with open(output_file, \"w\") as f:\n", + " json.dump(results_data, f, indent=2)\n", + " \n", + "print(f\"Resultados guardados en {output_file}\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "e4f8d78b", + "metadata": {}, + "outputs": [], + "source": [] +>>>>>>> 4b5352d93cf89b7562895b550fb5bd62160586c5 } ], "metadata": {