Skip to content

Update eval_science_qa.py#1530

Open
jubinchheda wants to merge 1 commit intohaotian-liu:mainfrom
jubinchheda:patch-1
Open

Update eval_science_qa.py#1530
jubinchheda wants to merge 1 commit intohaotian-liu:mainfrom
jubinchheda:patch-1

Conversation

@jubinchheda
Copy link

  • Use a set for split_indices and predictions to speed up lookup times.
  • Read files in a more efficient manner using with statements to ensure proper file handling.
  • Simplify the loop by combining conditions and removing redundant checks.
  • Use list comprehensions for filtering and counting.

* Use a set for split_indices and predictions to speed up lookup times.
* Read files in a more efficient manner using with statements to ensure proper file handling.
* Simplify the loop by combining conditions and removing redundant checks.
* Use list comprehensions for filtering and counting.
@jubinchheda
Copy link
Author

Can we merge this pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants