relife.datasets.load_insulator_string
relife.datasets.load_insulator_string¶
- relife.datasets.load_insulator_string() relife.data.LifetimeData [source]¶
Load and return the insulator string lifetime data for regression.
The data were simulated from a real estimate:
time: time-to-event or durations in years,
event: if a failure occurs during the observation period,
entry: age of the circuit breakers in years at the beginning of the observation period,
args: tuple of covariates related to the atmospheric polluants.
- Returns
The lifetime data as a dataclass instance.
- Return type
Examples
import numpy as np from scipy.stats import boxcox, zscore from relife.datasets import load_circuit_breaker time, event, entry, *args = load_insulator_string().astuple() covar = zscore(np.column_stack([boxcox(col)[0] for col in args[0].T]))