load_insulator_string#
- relife.data.load_insulator_string()[source]#
Load insulator string dataset containing observed lifetimes, left truncations values and covariates
- Returns:
- structured array
A numpy structured array of 3 fields :
time (
np.float64
) : observed lifetime valuesevent (
np.bool_
) : boolean flag indicated if the event has been observed or not (if False, the observed lifetimes are right censored)entry (
np.float64
) : left truncation valuespHCl (
np.float64
) : quantitative covariate values (concentration of pHCl)pH2SO4 (
np.float64
) : quantitative covariate values (concentration of pH2SO4)HNO3 (
np.float64
) : quantitative covariate values (concentration of HNO3)
Examples
>>> from relife.data import load_insulator_string >>> data = load_insulator_string() >>> print(data["time"]) [70. 30. 45. ... 8.8 7.6 53. ] >>> print(data["pHCl"]) [0.49 0.76 0.43 ... 1.12 1.19 0.35]