Is there a way to know "Haystack model's overfitting/not" on our data? #3081
-
Hello There, In order to get those eval details, I have added the following parameters: haystack/haystack/modeling/training/base.py Line 158 in bc6f71b However, I get the following error: Please let me know if there is a way to know the overfit case for Haystack models. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @Renuk9390! I assume you are using the import logging
logging.basicConfig(format="%(levelname)s - %(name)s - %(message)s", level=logging.WARNING)
logging.getLogger("haystack").setLevel(logging.INFO) Please let me know if this helps :) |
Beta Was this translation helpful? Give feedback.
Hi @Renuk9390! I assume you are using the
FARMReader
, please correct me if I am wrong. You are getting the TypeError, as theFARMReader
'strain
method does not allow an argumenteval_report
.eval_report
is a property of theTrainer
that is used inside theFARMReader
'strain
method, and it is set toTrue
by default, so the eval report should be produced. The problem here probably is that the eval report is logged at the logging levelINFO
, while the default logging level in python isWARNING
. In order to see the logs at theINFO
level produced by Haystack, you need to add the following code snippet: