andrewtavis / causeinfer

Machine learning based causal inference/uplift in Python
BSD 3-Clause "New" or "Revised" License
56 stars 11 forks source link

Create concise requirement and env files #27

Closed andrewtavis closed 3 years ago

andrewtavis commented 3 years ago

This issue is for creating concise versions of requirements.txt and environment.yml for causeinfer. It would be great if these files were created by hand with specific version numbers or generated in a way so that sub-dependencies don't always need to be updated.

As of now both files are being created with the following commands in the package's conda virtual environment:

pip list --format=freeze > requirements.txt  
conda env export --no-builds | grep -v "^prefix: " > environment.yml

causeinfer and other obviously unneeded packages are then removed from these files before being uploaded.

Any insights or help would be much appreciated!