11 ms·
Just please do not adopt their coding style. Use this instead: http://google.github.io/styleguide/pyguide.html http://google.github.io/styleguide/pyguide.html a
by m0zg 7y ago
Just please do not adopt their coding style. Use this instead: http://google.github.io/styleguide/pyguide.html http://google.github.io/styleguide/pyguide.html and try not to drag global state through your entire codebase with kwargs.
- jph00 7y agoThe fastai library uses a style guide specifically designed for data science libraries: https://docs.fast.ai/dev/style.html https://docs.fast.ai/dev/style.html . There is only one global in the library, which is a singleton called `defaults`, and contains 2 things: the default GPU to use, the the number of CPUs to use.