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
docs: arch: Mutable config properties #1122
Conversation
------- | ||
|
||
See :doc:`0003-Config-Property-Mutable-vs-Immutable` for more context. These | ||
documents we started during the same Weekly Sync Meeting (2021-05-25). |
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.
- What happens if package version changes? | ||
|
||
- Should we record what default value was and use old value in event of | ||
change? Or should we use the new value? |
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.
Pinging @yashlamba, @sakshamarora1, @0dust, @mhash1m, @sk-ip, @programmer290399
Codecov Report
@@ Coverage Diff @@
## master #1122 +/- ##
==========================================
- Coverage 86.32% 86.21% -0.12%
==========================================
Files 168 168
Lines 10543 10624 +81
Branches 1732 1746 +14
==========================================
+ Hits 9101 9159 +58
- Misses 1100 1117 +17
- Partials 342 348 +6
Continue to review full report at Codecov.
|
Tried out the patch from our last meeting on the example in
So I'm guessing we need to find a way to somehow not set these initial keys and avoid them so it doesn't blow up, right? Anyway, I tried setting the So I have the following ambiguities:
ping @pdxjohnny |
|
||
.. todo:: | ||
|
||
If a model is instantiated with config. Saved state in directory. Saved state |
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.
This stuff was copy pasted since these two docs started as one
@sakshamarora1 will pick up investigation of the patch and communication between @mhash1m and @programmer290399
|
bcc4e61
to
da71f69
Compare
.. code-block:: python | ||
|
||
class MyModel(Model): | ||
CONFIG = MyModelConfig |
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.
CONFIG = MyModelConfig | |
CONFIG = MyModelConfig | |
CONTEXT = ModelContext |
0312db5
to
8f54870
Compare
Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
0e24573
to
f8d2037
Compare
Checks if a caller is being called from a given method of a given object. Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
Co-authored-by: mHash1m <hashimchaudry23@gmail.com> Co-authored-by: Saahil Ali <programmer290399@gmail.com> Co-authored-by: Sudhanshu kumar <sudhanshukumar5459@gmail.com> Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
As defined by arch/0003-Config-Property-Mutable-vs-Immutable.rst Related: ipython/ipython#1456 Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
f8d2037
to
a74aae7
Compare
I pulled the branch and played with it. Anyway, everything works perfectly fine while working in the same session. Here's a little preview of how I verified mutable properties.
Instantiating with This is great, thank you @pdxjohnny . Question:What kind of support would this require for scikit models? Followup: |
https://github.com/intel/dffml/pull/1122/files#diff-aff838ca657169c089cf5d6e41383c0eaeba07312d4ca5355ac0bdf91d08fa00R80