API#
This section provides comprehensive details about the exposed ReLife API. ReLife is structured into different modules, each with a clear and specific role. We divided the API documentation close to the same logic.
Base class for ReLife models with parameters. |
|
Abstract generic class for maximum-likelihood estimation. |
Lifetime models#
Parametric lifetime models#
Parametric lifetime distributions
Exponential lifetime distribution. |
|
Weibull lifetime distribution. |
|
Gompertz lifetime distribution. |
|
Gamma lifetime distribution. |
|
Log-logistic probability distribution. |
|
Equilibrium distribution. |
|
Series structure of n identical and independent components. |
Parametric lifetime regressions
Proportional Hazard regression. |
|
Accelerated failure time regression. |
Semiparametric lifetime regression#
Cox semi-parametric proportional hazard. |
Non parametric lifetime models#
Kaplan-Meier estimator. |
|
Nelson-Aalen estimator. |
|
Empirical Cumulative Distribution Function. |
Stochastic processes#
Renewal process. |
|
Renewal reward process. |
|
Non-homogeneous Poisson process. |
Maintenance policies#
Age replacement renewal policy. |
|
One-cycle age replacement policy. |
|
Run-to-failure renewal policy. |
|
One-cycle run-to-failure policy. |
|
Age replacement policy for non-homogeneous Poisson processes. |
Built-in datasets#
Load example dataset of circuit breaker lifetimes. |
|
Load example dataset of insulator string lifetimes with covariates. |
|
Load example dataset of power transformers lifetimes. |
Quadratures#
Quadratures are used a many computations. We don’t use Scipy quadrature implementations as, to our knowledge, they don’t support automatic broadcasting of 2D bounds.
Numerical integration of \(f(x)\) over the interval \([a,b]\) |
|
Numerical integration of \(f(x) * exp(-x)\) over the interval \([a, \infty]\). |
|
Numerical integration of \(f(x)\) over the interval \([a, \infty]\) |
Typing#
Generic variadic type variable tuple used for additional model arguments, such as covariates. |
|
Scalar or NumPy array coercible to |
|
Scalar or one-dimensional NumPy array coercible to |
|
Scalar |
|
Scalar |
|
One-dimensional timeline array with dtype |
|
Accepted random seed inputs. |