Repository navigation
Update Signals tutorial for v3 neutral scores #37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Example Model Pickles | |
| on: | |
| workflow_dispatch: | |
| push: | |
| # paths: | |
| # - example_model.ipynb | |
| # - hello_numerai.ipynb | |
| # - feature_neutralization.ipynb | |
| # - target_ensemble.ipynb | |
| # - signals/example_model.ipynb | |
| # - crypto/example_model.ipynb | |
| branches: | |
| - master | |
| concurrency: build-example-models | |
| jobs: | |
| build_and_test: | |
| name: "Build Example Model Pickles" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install jupyter | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install jupyter | |
| pip install -r https://raw.githubusercontent.com/numerai/numerai-predict/refs/heads/master/py3.12/requirements.txt | |
| - name: build-example-model | |
| run: | | |
| jupyter nbconvert \ | |
| --execute numerai/example_model.ipynb \ | |
| --ExecutePreprocessor.timeout=-1 \ | |
| --to html | |
| - name: build-hello-numerai | |
| run: | | |
| jupyter nbconvert \ | |
| --execute numerai/hello_numerai.ipynb \ | |
| --ExecutePreprocessor.timeout=-1 \ | |
| --to html | |
| - name: build-feature-neutralization | |
| run: | | |
| jupyter nbconvert \ | |
| --execute numerai/feature_neutralization.ipynb \ | |
| --ExecutePreprocessor.timeout=-1 \ | |
| --to html | |
| - name: build-target-ensemble | |
| run: | | |
| jupyter nbconvert \ | |
| --execute numerai/target_ensemble.ipynb \ | |
| --ExecutePreprocessor.timeout=-1 \ | |
| --to html | |
| - name: build-signals-example-model | |
| run: | | |
| jupyter nbconvert \ | |
| --execute signals/example_model.ipynb \ | |
| --ExecutePreprocessor.timeout=-1 \ | |
| --to html | |
| - name: build-crypto-example-model | |
| run: | | |
| jupyter nbconvert \ | |
| --execute crypto/example_model.ipynb \ | |
| --ExecutePreprocessor.timeout=-1 \ | |
| --to html | |
| - name: delete-generated-files | |
| run: | | |
| rm -f numerai/example_model.html | |
| rm -f numerai/hello_numerai.html | |
| rm -f numerai/feature_neutralization.html | |
| rm -f numerai/target_ensemble.html | |
| rm -f signals/example_model.html | |
| rm -f signals/signals_example_preds.csv | |
| rm -f signals_example_preds.csv | |
| rm -f crypto/example_model.html | |
| rm -f crypto/crypto_example_preds.csv | |
| rm -f crypto_example_preds.csv | |
| - name: move-numerai-pickles-to-cached-pickles-dir | |
| run: | | |
| mkdir -p cached-pickles/ | |
| mv -f numerai/example_model.pkl cached-pickles/ | |
| mv -f numerai/hello_numerai.pkl cached-pickles/ | |
| mv -f numerai/feature_neutralization.pkl cached-pickles/ | |
| mv -f numerai/target_ensemble.pkl cached-pickles/ | |
| - name: commit-to-master | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| add: "cached-pickles/*" |