https://github.com/cstack/nutrition-predictor
EECS 445 Machine Learning project that, given menu descriptions, predicts nutritional information.
https://github.com/cstack/nutrition-predictor
Last synced: about 1 year ago
JSON representation
EECS 445 Machine Learning project that, given menu descriptions, predicts nutritional information.
- Host: GitHub
- URL: https://github.com/cstack/nutrition-predictor
- Owner: cstack
- Archived: true
- Created: 2013-10-24T15:34:43.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-21T02:22:19.000Z (over 12 years ago)
- Last Synced: 2025-03-03T08:28:59.567Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 500 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Nutrition-Predictor
===================
Setup
-----
Using a python Virtual Environment (https://pypi.python.org/pypi/virtualenv) is a great way to manage python packages.
After cloning for the first time:
- pip install virtualenv # Install the virtualenv package manager
- virtualenv venv # Create the directory that will hold the python packages
- pip install -r requirements.txt # Install the required python packages
Each time you start using it:
- . venv/bin/activate # Start using the virtual environment
If you need to add a new python package:
- pip install NEW_PACKAGE # Make sure you have already activated the virtual environment
- pip freeze > requirements.txt # Add the package to the list of required packages
Private constants like API keys are kept in `data_collection/private_consts.py`, which is not in the repo. Add it manually. It is ignored by `.gitignore`.
Pipeline
--------
Download 1000 examples:
`python download_data.py 1000`
Extract features from raw data:
`python extract_features.py`