-
Notifications
You must be signed in to change notification settings - Fork 80
Conversation
🚀 Deployed on https://deploy-preview-735--etna-docs.netlify.app |
Codecov Report
@@ Coverage Diff @@
## master #735 +/- ##
==========================================
- Coverage 83.67% 83.57% -0.11%
==========================================
Files 120 121 +1
Lines 6629 6643 +14
==========================================
+ Hits 5547 5552 +5
- Misses 1082 1091 +9
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
etna/models/nn/utils.py
Outdated
"""Mixin for `__deepcopy__` behaviour overriding.""" | ||
|
||
def __deepcopy__(self, memo): | ||
"""Drop `model` and `trainer` attributes while deepcopy.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same about variable names.
etna/models/nn/utils.py
Outdated
|
||
|
||
class _DeepCopyMixin: | ||
"""Mixin for `__deepcopy__` behaviour overriding.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable names should be surrounded by two surrounding characters instead of one.
Otherwise in ReST it will be italic instead of monotype.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything else is fine.
IMPORTANT: Please do not create a Pull Request without creating an issue first.
Before submitting (must do checklist)
Type of Change
Proposed Changes
I propose deepcopy behaviour changes for deep models: we dont copy model and trainer attributes
Reason:
"(graph leaves) support the deepcopy protocol at the moment")
Related Issue
Closing issues