Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add needs_loss and needs_training_losses control traits #51

Merged
merged 4 commits into from
Nov 12, 2021

Conversation

ablaom
Copy link
Member

@ablaom ablaom commented Nov 11, 2021

Needs EarlyStopping.jl version 0.3

  • Adds the traits needs_loss, needs_training_losses that were
    removed from EarlyStopping in v0.3.0

  • Changes the logic about how these are handled to correct previously
    unexpected behaviour discovered in MLJIteration.jl; see this
    issue
    . The
    traits have a slightly new interpretation: have train! throw an
    error if the trait is true for some control provided and the model
    has not been overloaded for loss/training_losses.

Resolves JuliaAI/MLJIteration.jl#36.

Needs EarlyStopping.jl version 0.3

- Adds the traits `needs_loss`, `needs_training_losses` that were
  removed from EarlyStopping.

- Changes the logic about how these are handled to correct previously
  unexpected behaviour discovered in MLJIteration.jl; see [this
  issue](JuliaAI/MLJIteration.jl#36). The
  traits have a slightly new interpretation: have `train!` throw an
  error if the trait is `true` for some control provided and the model
  has not been overloaded for `loss`/`training_losses`.

update readme
@codecov-commenter
Copy link

codecov-commenter commented Nov 11, 2021

Codecov Report

Merging #51 (fe416ae) into dev (08d1089) will decrease coverage by 0.07%.
The diff coverage is 90.90%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev      #51      +/-   ##
==========================================
- Coverage   96.30%   96.23%   -0.08%     
==========================================
  Files           8        8              
  Lines         298      292       -6     
==========================================
- Hits          287      281       -6     
  Misses         11       11              
Impacted Files Coverage Δ
src/stopping_controls.jl 88.88% <75.00%> (-11.12%) ⬇️
src/api.jl 87.50% <100.00%> (+1.78%) ⬆️
src/composite_controls.jl 96.66% <100.00%> (+0.11%) ⬆️
src/controls.jl 98.56% <100.00%> (+1.43%) ⬆️
src/train.jl 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 08d1089...fe416ae. Read the comment docs.

@ablaom ablaom merged commit 1bff2cc into dev Nov 12, 2021
@ablaom ablaom mentioned this pull request Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InvalidValue is not triggering a stop for invalid training losses
2 participants