-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing a few bugs + use None when missing predictions #3
Conversation
evaluations/evaluation_aragog.py
Outdated
@@ -153,15 +160,20 @@ def create_args(): | |||
|
|||
|
|||
def main(): | |||
t1 = datetime.datetime.now() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's a decorator for that @timeit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use the decorator instead
@@ -101,7 +104,10 @@ def run_evaluation(sample_questions, sample_answers, retrieved_contexts, predict | |||
"sas": eval_pipeline_results['sas'] | |||
} | |||
|
|||
inputs = {'questions': sample_questions, 'true_answers': sample_answers, 'predicted_answers': predicted_answers} | |||
inputs = {'questions': sample_questions, | |||
'contexts': retrieved_contexts, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davidsbatista this is where the contexts are added
None
prediction, and ideally this should not affect the scores downstream.contexts
to the csv file