Pinafore / qb

QANTA Quiz Bowl AI
MIT License
167 stars 50 forks source link

refactoring code for better vectorization #107

Open maldil opened 2 years ago

maldil commented 2 years ago

Hi,

Thank you very much for your excellent work in qb. I am a graduate student at the University of Colorado, studying the best practices of evolving ML codes. From our research, one of the most common evolution best practice in ML code is the migration of loop-based computations to vectorization, since this usually improves performance and code quality. We made the following changes in batchflow, which remove the FOR loop and use .join(). I carefully checked the modification to ensure that it does not break the code. I will gladly contribute. Please help me to merge this.