cf6a25ed5aae0f78e42b7b9594f54772880aaf53,linearmodels/panel/model.py,BetweenOLS,fit,#BetweenOLS#Any#Any#,510

Before Change


        self._avgx = x
        self._avgw = w
        if np.all(self.weights.values2d == 1.0) and not reweight:
            w = root_w = np.ones_like(w)
        else:
            root_w = np.sqrt(w)

        wx = root_w * x

After Change


        df_resid = nobs - df_model
        cov_denom = nobs if not debiased else df_resid
        cov_est = COVARIANCE_ESTIMATORS[cov_type]
        if cov_est not in self._supported_covs:
            raise ValueError("Requested covariance estimator is not supported for the model.")
        cov = cov_est(wy, wx, params, cov_denom, **cov_config)
        weps = wy - wx @ params
        eps = y - x @ params
        residual_ss = float(weps.T @ weps)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: bashtage/linearmodels
Commit Name: cf6a25ed5aae0f78e42b7b9594f54772880aaf53
Time: 2017-04-02
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/panel/model.py
Class Name: BetweenOLS
Method Name: fit


Project Name: SheffieldML/GPy
Commit Name: 0509b6f9d04bf4bb6d73f7e3120d0d3d39d4eaa0
Time: 2013-09-23
Author: lawrennd@gmail.com
File Name: GPy/kern/parts/eq_ode1.py
Class Name: Eq_ode1
Method Name: _extract_t_indices


Project Name: rusty1s/pytorch_geometric
Commit Name: 3735f4b48f52f7703944f36284b9e9ee3d1e8e5f
Time: 2020-10-27
Author: matthias.fey@tu-dortmund.de
File Name: examples/tgn.py
Class Name:
Method Name: train