Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tipresias/augury
Collection of Jupyter Notebooks and machine-learning functionality for Tipresias app
https://github.com/tipresias/augury
Last synced: about 2 months ago
JSON representation
Collection of Jupyter Notebooks and machine-learning functionality for Tipresias app
- Host: GitHub
- URL: https://github.com/tipresias/augury
- Owner: tipresias
- License: mit
- Created: 2019-07-13T01:57:01.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-10-15T02:49:25.000Z (about 2 years ago)
- Last Synced: 2024-08-01T10:19:11.219Z (5 months ago)
- Language: Jupyter Notebook
- Size: 24.6 MB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-kedro - Augury - learning functionality for predicting AFL match results in the Tipresias app (Example projects)
README
# Augury
![build](https://github.com/tipresias/augury/workflows/build/badge.svg)
[![Maintainability](https://api.codeclimate.com/v1/badges/17a2262d1fe60a36dd4a/maintainability)](https://codeclimate.com/github/tipresias/augury/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/17a2262d1fe60a36dd4a/test_coverage)](https://codeclimate.com/github/tipresias/augury/test_coverage)Jupyter Notebooks and machine-learning service for the Tipresias app
## Running things
### Setup
- To manage environemnt variables:
- Install [`direnv`](https://direnv.net/)
- Add `eval "$(direnv hook bash)"` to the bottom of `~/.bashrc`
- Run `direnv allow .` inside the project directory
- To build and run the app: `docker-compose up --build`### Run the app
- `docker-compose up`
- Navigate to `localhost:8008`.### Run Jupyter notebook in Docker
- If it's not already running, run Jupyter with `docker-compose up notebook`.
- The terminal will display something like the following message:```
notebook_1 | [I 03:01:38.909 NotebookApp] The Jupyter Notebook is running at:
notebook_1 | [I 03:01:38.909 NotebookApp] http://(ea7b71b85805 or 127.0.0.1):8888/?token=dhf7674ururrtuuf8968lhhjdrfjghicty57t69t85e6dhfj
notebook_1 | [I 03:01:38.909 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
```- Copy the URL given and paste it into your browser.
- Alternatively, copy just the token from the terminal, navigate your browser to `http://localhost:8888`, and paste the token into the given field.### Testing
#### Run Python tests
- `docker-compose run --rm data_science kedro test --no-cov`
- Note: Remove `--no-cov` to generate a test-coverage report in the terminal.
- Linting: `docker-compose run --rm pylint --disable=R `
- Note: `-d=R` disables refactoring checks for quicker, less-opinionated linting. Remove that option if you want to include those checks.### Deploy
- `augury` is deployed to Google Cloud via Travis CI. See `scripts/deploy.sh` for specific commands.
## Troubleshooting
- When working with some of the larger data sets (e.g. player stats comprise over 600,000 rows), your process might mysteriously die without completing. This is likely due to Docker running out of memory, because the default 2GB isn't enough. At least 4GB is the recommended limit, but you'll want more if you plan on having multiple processes running or multiple Jupyter notebooks open at the same time.