6c3543844a0ba1e05892d4bb37bf3035c9561cd9,lifelines/fitters/generalized_gamma_regression_fitter.py,GeneralizedGammaRegressionFitter,_log_hazard,#GeneralizedGammaRegressionFitter#Any#Any#Any#,166

Before Change



        ilambda_2 = 1 / lambda_ ** 2
        Z = (log(T) - mu_) / np.clip(safe_exp(ln_sigma_), 1e-10, 1e20)
        exp_term = np.clip(safe_exp(lambda_ * Z - 2 * log(np.abs(lambda_))), 1e-300, np.inf)

        return (
            log(np.abs(lambda_))

After Change



        ilambda_2 = 1 / lambda_ ** 2
        Z = (log(T) - mu_) / np.clip(safe_exp(ln_sigma_), 1e-10, 1e20)
        exp_term = np.clip(safe_exp(lambda_ * Z) * ilambda_2, 1e-25, 1e25)

        return (
            log(np.abs(lambda_))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: CamDavidsonPilon/lifelines
Commit Name: 6c3543844a0ba1e05892d4bb37bf3035c9561cd9
Time: 2020-02-20
Author: cam.davidson.pilon@gmail.com
File Name: lifelines/fitters/generalized_gamma_regression_fitter.py
Class Name: GeneralizedGammaRegressionFitter
Method Name: _log_hazard


Project Name: CamDavidsonPilon/lifelines
Commit Name: 6c3543844a0ba1e05892d4bb37bf3035c9561cd9
Time: 2020-02-20
Author: cam.davidson.pilon@gmail.com
File Name: lifelines/fitters/generalized_gamma_regression_fitter.py
Class Name: GeneralizedGammaRegressionFitter
Method Name: _cumulative_hazard


Project Name: CamDavidsonPilon/lifelines
Commit Name: 6c3543844a0ba1e05892d4bb37bf3035c9561cd9
Time: 2020-02-20
Author: cam.davidson.pilon@gmail.com
File Name: lifelines/fitters/generalized_gamma_regression_fitter.py
Class Name: GeneralizedGammaRegressionFitter
Method Name: _survival_function