Skip to content

Commit

Permalink
handle branch names in the release actions
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbkoch committed Aug 7, 2024
1 parent a84a17d commit 6b0dd50
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release_interpret.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
permissions:
id-token: write
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -36,6 +38,10 @@ jobs:
echo "Error: commit_id is empty."
exit 1
fi
if git show-ref --verify --quiet refs/heads/${commit_id}; then
# If it's a valid branch, resolve it to a commit ID
commit_id=$(git rev-parse ${commit_id})
fi
echo "Commit ID: ${commit_id}"
workflow_runs=$(gh api -X GET "/repos/${{ github.repository }}/actions/runs?status=success" -q '.workflow_runs | map(select(.head_commit.id == "'"${commit_id}"'" and .name == "interpret-CI")) | sort_by(.created_at) | reverse | .[0]')
run_id=$(echo "$workflow_runs" | jq -r '.id')
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release_powerlift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
permissions:
id-token: write
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -25,6 +27,10 @@ jobs:
echo "Error: commit_id is empty."
exit 1
fi
if git show-ref --verify --quiet refs/heads/${commit_id}; then
# If it's a valid branch, resolve it to a commit ID
commit_id=$(git rev-parse ${commit_id})
fi
echo "Commit ID: ${commit_id}"
workflow_runs=$(gh api -X GET "/repos/${{ github.repository }}/actions/runs?status=success" -q '.workflow_runs | map(select(.head_commit.id == "'"${commit_id}"'" and .name == "interpret-CI")) | sort_by(.created_at) | reverse | .[0]')
run_id=$(echo "$workflow_runs" | jq -r '.id')
Expand Down
1 change: 1 addition & 0 deletions docs/interpret/hyperparameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ guidance: We typically do not advise changing early_stopping_rounds. The default

## early_stopping_tolerance
default: 1e-5

hyperparameters: [1e-5, 1e-7, 0.0]

guidance: early_stopping_tolerance is set to 1e-5 because it decreases the fitting time by 25%, however setting early_stopping_tolerance to 0.0, or even a negative value sometimes yields slightly higher accuracy. EBMs are a bagged ensemble model, so overfitting each individual bag a little can be beneficial because after the models are averaged together in the ensemble averaging decreases the variance due to overfitting. Using a negative value for early_stopping_tolerance allows the individual models to be overfit.
Expand Down

0 comments on commit 6b0dd50

Please sign in to comment.