Skip to content

Commit

Permalink
Merge pull request #10 from ablaom/dev
Browse files Browse the repository at this point in the history
For a 0.1.3 release
  • Loading branch information
ablaom authored Mar 1, 2021
2 parents b571ad0 + 0f96af0 commit 8d649c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "EarlyStopping"
uuid = "792122b4-ca99-40de-a6bc-6742525f08b6"
authors = ["Anthony D. Blaom <[email protected]>"]
version = "0.1.2"
version = "0.1.3"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
8 changes: 4 additions & 4 deletions src/criteria.jl
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function update_training(criterion::PQ, loss)
nothing)
end

update(::PQ, loss) = error("First loss reported to the GL early stopping "*
update(::PQ, loss) = error("First loss reported to the PQ early stopping "*
"algorithm must be a training loss. ")

function update_training(criterion::PQ, loss, state)
Expand Down Expand Up @@ -274,7 +274,7 @@ A stop is triggered by `n` consecutive increases in the loss.
Denoted "_UP_s" in $PRECHELT_REF.
"""
mutable struct Patience <: StoppingCriterion
struct Patience <: StoppingCriterion
n::Int
function Patience(n::Int)
n > 0 ||
Expand Down Expand Up @@ -314,7 +314,7 @@ If wrapped in a `stopper::EarlyStopper`, this is the number of calls
to `done!(stopper)`.
"""
mutable struct NumberLimit <: StoppingCriterion
struct NumberLimit <: StoppingCriterion
n::Int
function NumberLimit(n::Int)
n > 0 ||
Expand Down Expand Up @@ -344,7 +344,7 @@ $STOPPING_DOC
A stop is triggered as soon as the loss drops below `value`.
"""
mutable struct Threshold <: StoppingCriterion
struct Threshold <: StoppingCriterion
value::Float64
end
Threshold(; value=0.0) = Threshold(value)
Expand Down

0 comments on commit 8d649c4

Please sign in to comment.