Kaggle Graph¶
GitHub action to automatically generate graphs of your submissions to Kaggle competitions and display them in your Github repository’s README
to track your progress.

User Guide¶
Getting Started¶
Add the
KAGGLE_KEY
secret to your GitHub repository underSettings > Secrets > Add a new secret
.Define a GitHub workflow by adding a
.github/workflow/kaggle-graph.yaml
to your repository using the template below:
name: Kaggle Graph Generation
on:
push:
branches: master
schedule:
- cron: '00 00 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v2
- name: Kaggle Graph Generation
uses: OliverSieweke/kaggle-graph@v0.1.0
with:
KAGGLE_KEY: ${{ secrets.KAGGLE_KEY }}
KAGGLE_USERNAME: oliversieweke
KAGGLE_COMPETITION_ID: titanic
- name: Git Auto Commit
uses: stefanzweifel/git-auto-commit-action@v4.1.6
with:
commit_message: Automatic Kaggle graph generation
Add the graph to your
README
:
- Markdown:
[!Kaggle Submissions Graph](./kaggle-submissions-graph.png)
- reStructuredText:
.. image:: ./kaggle-submissions-graph.png :alt: Kaggle Submissions Graph
Note
Note
Kaggle Graph is designed to be used in conjunction with the following GitHub actions:
Configurations¶
The action can be further configured over the input keys below:
Name |
Description |
Required |
Default |
Type |
---|---|---|---|---|
|
Kaggle username. |
|
|
|
|
Kaggle key. |
|
|
|
|
Kaggle competition ID. |
|
|
|
|
Output graph file name. |
|
|
|
|
Y-axis minimum boundary. |
|
|
|
|
Y-axis maximum boundary. |
|
|
|
|
Score type. |
|
|
|
|
Score objective. |
|
|
|
Troubleshooting¶
- My graph does not update:
GitHub seems to be caching images. Although the graph updates, the display may take a couple of minutes to reflect the change.
Developer Guide¶
Kaggle Graph¶
This is the top level module, which includes a __main__
script
to generate the Kaggle graph by loading the required environment
variables (including the Kaggle credentials) using
kaggle_graph.action_inputs
and then composing the methods
exposed in kaggle_graph.plot
and
kaggle_graph.submissions
.