cox_regression.tests.test_stacking module¶
Test suite for testing the correctness of the stacking function.
- class cox_regression.tests.test_stacking.TestSurvivalStacking(methodName='runTest')[source]¶
- Bases: - TestCase- Test cases for survival stacking module - test_failure_at_end_times()[source]¶
- Validates that failures are recorded at the end of a time bin. The data and the solution have been created by hand. - Return type:
- None
 
 - test_stack_lifelines()[source]¶
- Validates the time-varying stack function using a lifelines data set. The input dataset is a toy example from lifelines. The solution has been created by hand. - Return type:
- None
 
 - test_stack_static_lifelines()[source]¶
- Validates non-time varying stacking function, no time bins. Uses a small data set from lifelines. Tested against a manually stacked version. - Return type:
- None