You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FAQ-D/REF: setting attributes in wrapped results instance #3920
The workaround is to have official results.set_xxx methods or settable attributes if needed.
However, in general we don't "allow" users to change any attributes of a results instance. (We cannot prevent it and I use it for cheating sometimes, but nothing is quaranteed anymore if an attribute is changed by the user.)
This issue is mainly a reminder and trick for internal code.
related: from statsmodels.tools.tools import maybe_unwrap_results
Activity
jbrockmendel commentedon Oct 4, 2017
I'm unclear on the goal. Are you suggesting patching
ResultsWrapper.__setattr__to pass through tores._results.__setattr__?josef-pkt commentedon Oct 4, 2017
No, I don't want to touch the Wrapper code.
The workaround is to have official
results.set_xxxmethods or settable attributes if needed.However, in general we don't "allow" users to change any attributes of a results instance. (We cannot prevent it and I use it for cheating sometimes, but nothing is quaranteed anymore if an attribute is changed by the user.)
This issue is mainly a reminder and trick for internal code.
related:
from statsmodels.tools.tools import maybe_unwrap_results