To compile, cython needs to be installed.
Pytest is used for tests.
make test
pycodestyle and pylint are used for linter.
make lint
The main dataset used to profile is FIFA, stream data from the website of FIFA World Cup 98. Can be download here
To run the profiling, you need to run the command python profiling/profiling.py <mode> <data_path> <profile_path>
.
For instance, python profiling/profiling.py train data/FIFA.dat profiling/sample_profiling.profile
.
The mode should be either train or predict.
The train profiles should be made with the full datasets, the predict profiles should be made with the partial datasets. The predict
method is taking more time than the train
method, so a smaller dataset is enough to profile predict
.
To read stats you need to use the pstats module. python -m pstats <profile_path>
.
Make sure you ran make test
and make lint
before pushing.