File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 3232 python -c 'import optuna_integration'
3333
3434 pip install -r comet/requirements.txt
35+ - name : Set API Key
36+ run : echo "COMET_API_KEY=${{ secrets.COMET_API_KEY }}" >> $GITHUB_ENV
3537 - name : Run examples
3638 run : |
3739 python comet/comet_callback.py
Original file line number Diff line number Diff line change 1717
1818import comet_ml
1919import optuna
20+ import os
2021from optuna_integration .comet import CometCallback
2122
2223from sklearn .datasets import load_breast_cancer
2728from sklearn .model_selection import train_test_split
2829
2930
30- # Initialize Comet ML
31- comet_ml .login (project_name = "comet-optuna-sklearn- example" )
31+ experiment = comet_ml . Experiment ( api_key = os . getenv ( "COMET_API_KEY" ))
32+ comet_ml .login (project_name = "comet-optuna-example" )
3233experiment = comet_ml .start ()
3334
3435# Load dataset
You can’t perform that action at this time.
0 commit comments