tansey / pycfr

A python implementation of Counterfactual Regret Minimization for poker
277 stars 70 forks source link

ENH: Use more numpy/scipy for math #3

Closed dohmatob closed 9 years ago

dohmatob commented 9 years ago

Most operations on arrays, and other similar math seem to be done manually. We should use numpy/scipy for that.

tansey commented 9 years ago

I definitely agree that in general numpy/scipy for scientific code is more appropriate. However, the choice to not use them was intentional. This is not a package designed for speed, but rather one designed to be used as a learning framework that can be easily digested by people looking to implement their own CFR algorithm or variant.

If you'd like to fork the project and make a vectorized version, I think that's a great idea.