load_circuit_breaker#
- relife.data.load_circuit_breaker()[source]#
Load example dataset of circuit breaker lifetimes.
- 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 values
Examples
>>> from relife.data import load_circuit_breaker >>> data = load_circuit_breaker() >>> print(data["time"]) [34. 28. 12. ... 42. 42. 37.]