An open API service indexing awesome lists of open source software.

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.

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`