-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Add Trainer.validate(…) method to run one validation epoch #4948
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
Merged
carmocca
merged 45 commits into
Lightning-AI:master
from
EliaCereda:feature/trainer-validate-2
Mar 11, 2021
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
edb3e83
Refactor Trainer in advance of implementing Trainer.validate
EliaCereda 03d7994
Merge remote-tracking branch 'upstream/master' into feature/trainer-v…
EliaCereda 5a54485
Add Trainer.validate(...) method to perform one evaluation epoch over…
EliaCereda e06775c
Rename methods in Trainer and Accelerator to reflect that they are us…
EliaCereda b4e409c
Update docs to mention the new Trainer.validate method and associated…
EliaCereda 96e42ba
Add tests for Trainer.validate(…)
EliaCereda 85b3c9f
Update CHANGELOG.md
EliaCereda 39113dc
Merge branch 'master' into feature/trainer-validate-2
tchaton a6be0d8
Replace usages of Trainer.testing with Trainer.evaluating, should be …
EliaCereda a922d57
Merge remote-tracking branch 'upstream/master' into feature/trainer-v…
EliaCereda 595f4e8
Clean up calls to LightningDataModule.setup()
EliaCereda 0b09248
Update test_trainer_validate_loop.py to use BoringModel instead of Ev…
EliaCereda d691d79
Merge remote-tracking branch 'upstream/master' into feature/trainer-v…
EliaCereda 52eaa70
Merge branch 'feature/trainer-validate-1' into feature/trainer-valida…
EliaCereda 06b4419
Fix ShardedPlugin when evaluating
EliaCereda e6a8be9
Merge remote-tracking branch 'origin/feature/trainer-validate-1' into…
EliaCereda 389940e
Add tests for Trainer.validate with ShardedPlugin
EliaCereda 6d0a95a
Remove superfluous calls to LoggerConnector.set_stage in validate() a…
EliaCereda 704b121
Update more docstrings to mention Trainer.validate
EliaCereda f6e0759
Merge branch 'release/1.2-dev' into feature/trainer-validate-1
tchaton 90e59c7
Merge remote-tracking branch 'upstream/release/1.2-dev' into feature/…
EliaCereda 45d7e0a
Merge branch 'feature/trainer-validate-1' into feature/trainer-valida…
EliaCereda 12a85b3
Pass {fit,validate,test,predict} to setup()
carmocca d49ccd1
Fix doctest
carmocca 23db135
stage: Optional[str] = None
carmocca 84f5fdb
Trailing whitespace
carmocca 188b9fe
Update docs and CHANGELOG
carmocca 37473f0
Mention teardown
carmocca 0a30abf
Self-review
carmocca 0e9d69c
Address Borda's comments
carmocca 04343ce
Merge branch 'deleteme-carmocca' into feature/trainer-validate-2
carmocca 9758c7b
Fixing conflicts
carmocca 18280df
Implement Trainer.validate
carmocca e582d58
Refactor
carmocca 1a5b620
Merge branch 'master' into feature/trainer-validate-2
carmocca 5b99ec0
flake8
carmocca 9f4dce2
Refactor
carmocca 088d4bc
Missing import
carmocca 58fcca4
Fix test
carmocca babb73d
Same threshold
carmocca 235dc27
Address tchaton's comments
carmocca 73dd265
Merge branch 'master' into feature/trainer-validate-2
carmocca e423b98
Missing import
carmocca cdec83b
Merge branch 'master' into feature/trainer-validate-2
carmocca 8fab50f
Apply suggestions from code review
carmocca File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.