aeaeb8c961e99d60b60a65e519e4b0c61747942c,perf_tests/cp_perf_test.py,,,#,5
Before Change
df = pd.concat([df] * reps)
print(df.shape)
cph = CoxPHFitter(baseline_estimation_method="spline", n_baseline_knots=1)
start_time = time.time()
cph.fit(df, duration_col="week", event_col="arrest", show_progress=True, strata=["mar", "paro"])
cph.print_summary()
r = cph.predict_cumulative_hazard(df)
After Change
df = pd.concat([df] * reps)
print(df.shape)
cph = CoxPHFitter(strata=["wexp"])
start_time = time.time()
cph.fit(df, duration_col="week", event_col="arrest", show_progress=True)
cph.print_summary()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: CamDavidsonPilon/lifelines
Commit Name: aeaeb8c961e99d60b60a65e519e4b0c61747942c
Time: 2020-08-04
Author: cam.davidson.pilon@gmail.com
File Name: perf_tests/cp_perf_test.py
Class Name:
Method Name:
Project Name: CamDavidsonPilon/lifelines
Commit Name: d6631a21094ca1e46e53916f61de820b9e33c0ad
Time: 2020-03-23
Author: cam.davidson.pilon@gmail.com
File Name: perf_tests/cp_perf_test.py
Class Name:
Method Name:
Project Name: CamDavidsonPilon/lifelines
Commit Name: 75a831d7ca76b8ba85714d21ec9322083532fc3c
Time: 2020-06-17
Author: cam.davidson.pilon@gmail.com
File Name: lifelines/tests/test_estimation.py
Class Name: TestRegressionFitters
Method Name: regression_models_sans_strata_model