Repository navigation
Conversation
|
Hello @josef-pkt! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2024-11-21 16:23:22 UTC |
| p = np.concatenate((params_loc, s)) | ||
| return self.loglikeobs(p) | ||
|
|
||
| import statsmodels.tools.numdiff as nd |
Check notice
Code scanning / CodeQL
Module is imported with 'import' and 'import from'
| # if isinstance(self.norm, rnorms.TukeyBiweight): | ||
| # # hardcoded for default shape/tuning parameter | ||
| # self.scale_fac = 3.97913 |
Check notice
Code scanning / CodeQL
Commented-out code
| # note: extra scale cancels between nominator and denominator | ||
|
|
||
| if self.scale_fixed is None: | ||
| def func(s): |
Check notice
Code scanning / CodeQL
Unused local variable
| self.scale_fac = stats.norm.expect( | ||
| lambda t: t * self.norm.psi(t) | ||
| ) |
Check warning
Code scanning / CodeQL
Overwriting attribute in super-class or sub-class
|
|
||
| def _predict_jac(self, params, exog=None): | ||
| if exog is None: | ||
| exog = self.exog |
Check notice
Code scanning / CodeQL
Unused local variable
|
|
||
| def predict_deriv(self, params, exog=None): | ||
| if exog is None: | ||
| exog = self.exog |
Check notice
Code scanning / CodeQL
Unused local variable
|
|
||
| def predict_deriv(self, params, exog=None): | ||
| if exog is None: | ||
| exog = self.exog |
Check notice
Code scanning / CodeQL
Unused local variable
9bddd99 to
3abef6b
Compare
continuation of #3261
current state, it works but is a design mess
It is difficult to handle joint estimation of mean and scale in the same model as estimating mean with fixed or auxiliary scale (as in RLM)
more refactoring should separate into 2 types of models:
using global estimators