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

Utils callbacks #1145

Merged
merged 25 commits into from
Mar 28, 2021
Merged

Utils callbacks #1145

merged 25 commits into from
Mar 28, 2021

Conversation

elephantmipt
Copy link
Collaborator

Before submitting (checklist)

  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • Did you read the contribution guide?
  • Did you check the code style? catalyst-make-codestyle && catalyst-check-codestyle (pip install -U catalyst-codestyle).
  • Did you make sure to update the docs? We use Google format for all the methods and classes.
  • Did you check the docs with make check-docs?
  • Did you write any new necessary tests?
  • Did you check that your code passes the unit tests pytest . ?
  • Did you add your new functionality to the docs?
  • Did you update the CHANGELOG?

Description

Related Issue

Type of Change

  • Examples / docs / tutorials / contributors update
  • Bug fix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves an existing feature)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

PS

  • I know, that I could join slack for pull request discussion.

@pep8speaks
Copy link

pep8speaks commented Mar 28, 2021

Hello @elephantmipt! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 93:100: E501 line too long (102 > 99 characters)

Comment last updated at 2021-03-28 12:19:01 UTC

@mergify
Copy link

mergify bot commented Mar 28, 2021

This pull request is now in conflicts. @elephantmipt, could you fix it? 🙏

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

pep8

catalyst/callbacks/quantization.py|106 col 100| W505 doc line too long (100 > 99 characters)
catalyst/callbacks/quantization.py|131 col 1| D102 Missing docstring in public method

@@ -12,7 +12,8 @@ def quantize_model(
"""Function to quantize model weights.

Args:
model (Model): model to quantize
logdir: path to folder for saving

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pep8] reported by reviewdog 🐶
DAR102 Excess parameter(s) in Docstring: + filename

catalyst/callbacks/tracing.py Outdated Show resolved Hide resolved
catalyst/callbacks/tracing.py Outdated Show resolved Hide resolved
catalyst/callbacks/tracing.py Outdated Show resolved Hide resolved
catalyst/callbacks/tracing.py Outdated Show resolved Hide resolved
catalyst/callbacks/quantization.py Outdated Show resolved Hide resolved
catalyst/callbacks/quantization.py Outdated Show resolved Hide resolved
catalyst/callbacks/quantization.py Outdated Show resolved Hide resolved
catalyst/callbacks/quantization.py Outdated Show resolved Hide resolved
catalyst/callbacks/quantization.py Outdated Show resolved Hide resolved
@Scitator Scitator changed the base branch from master to github-ci-fix March 28, 2021 11:41
@mergify
Copy link

mergify bot commented Mar 28, 2021

This pull request is now in conflicts. @elephantmipt, could you fix it? 🙏

catalyst/utils/quantization.py Outdated Show resolved Hide resolved
catalyst/callbacks/tracing.py Outdated Show resolved Hide resolved
catalyst/callbacks/tracing.py Outdated Show resolved Hide resolved
else:
self.filename = filename

def on_stage_end(self, runner: "IRunner") -> None:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pep8] reported by reviewdog 🐶
D102 Missing docstring in public method

catalyst/callbacks/__init__.py Outdated Show resolved Hide resolved
catalyst/callbacks/onnx.py Outdated Show resolved Hide resolved
catalyst/callbacks/tracing.py Outdated Show resolved Hide resolved
@Scitator Scitator merged commit 5983667 into github-ci-fix Mar 28, 2021
@mergify mergify bot deleted the utils_callbacks branch March 28, 2021 12:20
Scitator added a commit that referenced this pull request Mar 28, 2021
* verbose

* Utils callbacks (#1127)

* quantization.py

* onnx and quantization

* tracing.py

* docs

* fix

* fix

* quantization test

* fix test

* fix comments

* fix comments

* Update catalyst/callbacks/__init__.py

Co-authored-by: Sergey Kolesnikov <[email protected]>

* tests

* tests

* tests

* tests

* tests

* pycharm tricks

* extra tests

* Utils callbacks (#1145)

* quantization.py

* onnx and quantization

* tracing.py

* docs

* fix

* fix

* quantization test

* fix test

* fix comments

* fix comments

* quantization example

* examples

* CHANGELOG.md

* fix

* fix

* Apply suggestions from code review

Co-authored-by: Sergey Kolesnikov <[email protected]>

* extra tests 2

* extra tests 2

* extra tests 2

* extra tests 2

* extra tests 2

* extra tests 2

* extra tests 2

* extra tests 2

Co-authored-by: Nikita Balagansky <[email protected]>
zkid18 pushed a commit to zkid18/catalyst that referenced this pull request Apr 4, 2021
* verbose

* Utils callbacks (catalyst-team#1127)

* quantization.py

* onnx and quantization

* tracing.py

* docs

* fix

* fix

* quantization test

* fix test

* fix comments

* fix comments

* Update catalyst/callbacks/__init__.py

Co-authored-by: Sergey Kolesnikov <[email protected]>

* tests

* tests

* tests

* tests

* tests

* pycharm tricks

* extra tests

* Utils callbacks (catalyst-team#1145)

* quantization.py

* onnx and quantization

* tracing.py

* docs

* fix

* fix

* quantization test

* fix test

* fix comments

* fix comments

* quantization example

* examples

* CHANGELOG.md

* fix

* fix

* Apply suggestions from code review

Co-authored-by: Sergey Kolesnikov <[email protected]>

* extra tests 2

* extra tests 2

* extra tests 2

* extra tests 2

* extra tests 2

* extra tests 2

* extra tests 2

* extra tests 2

Co-authored-by: Nikita Balagansky <[email protected]>
Scitator added a commit that referenced this pull request Apr 9, 2021
* add movielens

* First hitrate metric version

* metrge with upstream

* fix topk_map

* fix error in map

* tests for map

* top_k ndcg

* edit changelog

* edit the tabs

* check codestyle

* check the intent

* check the intent

* remove trailing whitespace

* fixed hitrate

* fixed the docs

* hitrate

* Additive margin softmax (#1131)

* Added Additive-margin softmax

* update changelog.md

* Readme update2 (#1142)

* readme

* batch overfit fix for reproducibility

* batch overfit fix for reproducibility

* readme

* readme update

* extra Config/Hydra API fixes

* codestyle

* updated dl_cpu(workflows)- For passing CI-Tests (#1135)

* updated dl_cpu

* Updated-requirements-ml.txt

* corrected the mistake

* Update dl_cpu.yml

* Update requirements-ml.txt

* Kept dl_cpu 20.04-3.6 minimal as requested

* Corrected the mistakes

* Add requirements parameter

* Update dl_cpu.yml

* Update dl_cpu.yml

Co-authored-by: Sergey Kolesnikov <[email protected]>

* fix: `_key_value` for schedulers in case of multiple optimizers fixed (#1146)

* Github CI fixes (#1143)

* verbose

* Utils callbacks (#1127)

* quantization.py

* onnx and quantization

* tracing.py

* docs

* fix

* fix

* quantization test

* fix test

* fix comments

* fix comments

* Update catalyst/callbacks/__init__.py

Co-authored-by: Sergey Kolesnikov <[email protected]>

* tests

* tests

* tests

* tests

* tests

* pycharm tricks

* extra tests

* Utils callbacks (#1145)

* quantization.py

* onnx and quantization

* tracing.py

* docs

* fix

* fix

* quantization test

* fix test

* fix comments

* fix comments

* quantization example

* examples

* CHANGELOG.md

* fix

* fix

* Apply suggestions from code review

Co-authored-by: Sergey Kolesnikov <[email protected]>

* extra tests 2

* extra tests 2

* extra tests 2

* extra tests 2

* extra tests 2

* extra tests 2

* extra tests 2

* extra tests 2

Co-authored-by: Nikita Balagansky <[email protected]>

* Engine docs (#1141)

* typings & few docs

* typing fix; disabled `dist.barrier()` in optimizer step for ddp

* docs

* docs: fixed long lines with docs

* docs fixes

* optimizer args

* removed empty line

Co-authored-by: Dmytro Doroshenko <[email protected]>

* v21.03.1

* v21.03: minimal version fix (#1147)

* minimal version fix

* docs

* fix: nested dicts in loaders_params/samplers_params overriding (#1150)

* docs (#1152)

* Github CI fix (#1148)

* fix

* fix

* Niftireader (#1151)

* changes for NiftiReader

* adding import statement that was needed and fixing codestyle

* updated CHANGELOG

* removing unnecesary documentation

* fixing codestyle

* updated docs and requirements

* adding a space

* not importing nibabel for docs

* fixing typo

* adding step for contrib pip caching

* fixed codestyle and added a test for reader that uncovered a mistake :)

* hopefully fixing imports

* adding sergey suggested fix

* fixing deploy_push.yml

* updating workflows

Co-authored-by: Kevin Wang <[email protected]>
Co-authored-by: Kevin Wang <[email protected]>

* add changelog

* solved runtime error

* hitrate calculation

Co-authored-by: Daniel Chepenko <[email protected]>
Co-authored-by: denyhoof <[email protected]>
Co-authored-by: Даниил <[email protected]>
Co-authored-by: Atharva Phatak <[email protected]>
Co-authored-by: Sergey Kolesnikov <[email protected]>
Co-authored-by: Yauheni Kachan <[email protected]>
Co-authored-by: Nikita Balagansky <[email protected]>
Co-authored-by: Dmytro Doroshenko <[email protected]>
Co-authored-by: Kevin Wang <[email protected]>
Co-authored-by: Kevin Wang <[email protected]>
Co-authored-by: Kevin Wang <[email protected]>
zkid18 pushed a commit to zkid18/catalyst that referenced this pull request Jul 4, 2021
* verbose

* Utils callbacks (catalyst-team#1127)

* quantization.py

* onnx and quantization

* tracing.py

* docs

* fix

* fix

* quantization test

* fix test

* fix comments

* fix comments

* Update catalyst/callbacks/__init__.py

Co-authored-by: Sergey Kolesnikov <[email protected]>

* tests

* tests

* tests

* tests

* tests

* pycharm tricks

* extra tests

* Utils callbacks (catalyst-team#1145)

* quantization.py

* onnx and quantization

* tracing.py

* docs

* fix

* fix

* quantization test

* fix test

* fix comments

* fix comments

* quantization example

* examples

* CHANGELOG.md

* fix

* fix

* Apply suggestions from code review

Co-authored-by: Sergey Kolesnikov <[email protected]>

* extra tests 2

* extra tests 2

* extra tests 2

* extra tests 2

* extra tests 2

* extra tests 2

* extra tests 2

* extra tests 2

Co-authored-by: Nikita Balagansky <[email protected]>
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.

3 participants