load_circuit_breaker#

relife.data.load_circuit_breaker()[source]#

Load circuit breaker dataset containing observed lifetimes and left truncations values

Returns:
structured array

A numpy structured array of 3 fields :

  • time (np.float64) : observed lifetime values

  • event (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 values

Examples

>>> from relife.data import load_circuit_breaker
>>> data = load_circuit_breaker()
>>> print(data["time"])
[34. 28. 12. ... 42. 42. 37.]