My machine learning study project
brew install pyenv
Setup your ~/.zshrc or ~/.bash_profile depending on your shell. For detailed settings. Refer to following command.
pyenv init
pyenv install --list | grep anaconda
pyenv install anaconda3-5.3.1
If you are using python with newer version than 3.3, you can create virtual environment by
python3 -m venv .
source bin/activate
All dependencies are described in requirements.in file.
To install dependencies, use following commands
pip3 install -r requirements.txt
First, install pip-tools
python3 -m pip install pip-tools
Specify requirements in requirements.in file. Then run following command to update requirements.txt.
pip-compile
We use pytest for unit testing. Use following commands to run tests.
pytest # run all tests.
pytest test # run all tests in specific package.
pytest test/sample_test.py # run tests in specific module.
pytest test/sample_test.py -k test_sample # run specific test case.
pytest test/sample_test.py::SampleTest::test_sample # run specific test case.
We used Pytorch for ML research.