b682d1f8b0e32517805828c8dc15e933d0057335,lifelines/fitters/__init__.py,ParametricRegressionFitter,_fit,#ParametricRegressionFitter#,1632

Before Change


            // the .intersection preserves order, important!
            self.regressors = {name: list(df.columns.intersection(cols)) for name, cols in sorted(regressors.items())}
        else:
            self.regressors = {name: df.columns.tolist() for name in sorted(self._fitted_parameter_names)}
        assert all(
            len(cols) > 0 for cols in self.regressors.values()
        ), "All parameters must have at least one column associated with it. Did you mean to include a constant column?"

After Change


            df = self._filter_dataframe_to_covariates(df).astype(float)
            

        self.regressors, Xs = self._create_design_matrices(regressors)

        _index = pd.MultiIndex.from_tuples(
            sum(([(name, col) for col in columns] for name, columns in self.regressors.items()), [])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: CamDavidsonPilon/lifelines
Commit Name: b682d1f8b0e32517805828c8dc15e933d0057335
Time: 2020-07-11
Author: cam.davidson.pilon@gmail.com
File Name: lifelines/fitters/__init__.py
Class Name: ParametricRegressionFitter
Method Name: _fit


Project Name: nilmtk/nilmtk
Commit Name: 7895f5165378bc37f14ab02e05614d015473155b
Time: 2014-01-14
Author: nipunreddevil@gmail.com
File Name: scripts/plots_for_e_energy_2014/top_k_appliances_comparison.py
Class Name:
Method Name:


Project Name: senarvi/theanolm
Commit Name: c15d91b235b77b177377ea382bdf9d4149e52ca5
Time: 2015-09-20
Author: seppo.git@marjaniemi.com
File Name: theanolm/src/rnnlm.py
Class Name: RNNLM
Method Name: load_params