Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The Berkeley SUMSarizer

License

NotificationsYou must be signed in to change notification settings

SUMSarizer/SUMSarizer

Repository files navigation

The Berkeley SUMSarizer

The SUMSarizer reduces raw SUMS data into a log of "cooking events" using machine learning. Upload your CSV files, train the algorithm by manually annotating a few data sets (with a nice UI), and the SUMSarizer will do the rest.

Guaranteed to save you a month of data wrangling!

Development

Check out thesample development environment for getting started on SUMSARIZER development.

Install

SUMSarizer is a Python 2.7 app.

Install its requirements:

pip install -r requirements.txt

R should also be installed with the following packages:

plyrdevtoolspsplinecaToolsglmnetdevtools::install_github('jeremyrcoyle/origami')

Configure

The current config expects a Postgres database at the following URI:postgresql://sums:sums@localhost/sums

The following environment variables should be set:

APP_SETTINGS="config.DevelopmentConfig"

Run

python run.py

There are a few different background workers to spin up for various tasks:

Uploading

python worker.py

Running machine learning

python -m tasks.ml_worker

Migrations

To initialize the DB schema run:

python manage.py db upgrade

If you change a model file inmodels.py, run:

python manage.py db migrate

to generate the migration file. Inspect the migration file inmigrations/versions/...py If it looks good, run it with:

python manage.py db upgrade

[8]ページ先頭

©2009-2025 Movatter.jp