Skip to content

Commit

Permalink
Merge pull request #36 from JuliaAI/dev
Browse files Browse the repository at this point in the history
Update codecov. No new release.
  • Loading branch information
ablaom authored Dec 28, 2024
2 parents 4f3da13 + 76445ab commit 0347f28
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v4
with:
file: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
verbose: true
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

[compat]
Statistics = "1"
julia = "^1"

[extras]
Expand Down
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,19 @@ subtype `T` has a detailed doc-string queried with `?T` at the
REPL. Here is a short summary:


criterion | description | notation in Prechelt
----------------------|-------------------------------------------------------|---------------------
`Never()` | Never stop |
`InvalidValue()` | Stop when `NaN`, `Inf` or `-Inf` encountered |
`TimeLimit(t=0.5)` | Stop after `t` hours |
`NumberLimit(n=100)` | Stop after `n` loss updates (excl. "training losses") |
`NumberSinceBest(n=6)`| Stop after `n` loss updates (excl. "training losses") |
`Threshold(value=0.0)`| Stop when `loss < value` |
`GL(alpha=2.0)` | Stop after "Generalization Loss" exceeds `alpha` | ``GL_α``
`PQ(alpha=0.75, k=5)` | Stop after "Progress-modified GL" exceeds `alpha` | ``PQ_α``
`Patience(n=5)` | Stop after `n` consecutive loss increases | ``UP_s``
`Disjunction(c...)` | Stop when any of the criteria `c` apply |
`Warmup(c; n=1)` | Wait for `n` loss updates before checking criteria `c`|
| criterion | description | notation in Prechelt |
|:-----------------------|:------------------------------------------------------------------------------------|:---------------------|
| `Never()` | Never stop | |
| `InvalidValue()` | Stop when `NaN`, `Inf` or `-Inf` encountered | |
| `TimeLimit(t=0.5)` | Stop after `t` hours | |
| `NumberLimit(n=100)` | Stop after `n` loss updates (excl. "training losses") | |
| `NumberSinceBest(n=6)` | Stop when best loss occurred on the `n`th previous update (excl. "training losses") | |
| `Threshold(value=0.0)` | Stop when `loss < value` | |
| `GL(alpha=2.0)` | Stop after "Generalization Loss" exceeds `alpha` | ``GL_α`` |
| `PQ(alpha=0.75, k=5)` | Stop after "Progress-modified GL" exceeds `alpha` | ``PQ_α`` |
| `Patience(n=5)` | Stop after `n` consecutive loss increases | ``UP_s`` |
| `Disjunction(c...)` | Stop when any of the criteria `c` apply | |
| `Warmup(c; n=1)` | Wait for `n` loss updates before checking criteria `c` | |


## Criteria tracking both training and out-of-sample losses
Expand Down
2 changes: 1 addition & 1 deletion src/EarlyStopping.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module EarlyStopping
module EarlyStopping

using Dates
using Statistics
Expand Down

0 comments on commit 0347f28

Please sign in to comment.