MCPcopy Create free account

hub / github.com/derrynknife/SurPyval / functions

Functions1,523 in github.com/derrynknife/SurPyval

Methodpdf
(self, x: ArrayLike, *args, **kwargs)
surpyval/distribution.py:96
Methodpdf
(self, u, v, rho)
surpyval/multivariate/parametric/copula/elliptical.py:47
Methodpdf
Joint density ``c(F_1, F_2) f_1 f_2``.
surpyval/multivariate/parametric/copula/copula_model.py:51
Methodpdf
(self, u, v, *params)
surpyval/multivariate/parametric/copula/archimedean.py:32
Methodpdf
(self, u, v, theta)
surpyval/multivariate/parametric/copula/archimedean.py:81
Methodphi
(self, Z: "npt.ArrayLike | pd.DataFrame")
surpyval/univariate/regression/parametric_regression_model.py:122
Methodphi
(self, Z, *p)
surpyval/univariate/regression/accelerated_failure_time/aft_fitter.py:150
Methodphi
(self, Z: ndarray, *params: float)
surpyval/univariate/regression/accelerated_life/lifemodel.py:18
Methodphi
(self, Z: ndarray, *params: float)
surpyval/univariate/regression/accelerated_life/linear.py:15
Methodphi
(self, Z: ndarray, *params: float)
surpyval/univariate/regression/accelerated_life/power.py:15
Methodphi
(self, Z: ndarray, *params: float)
surpyval/univariate/regression/accelerated_life/dual_power.py:15
Methodphi
(self, Z: ndarray, *params: float)
surpyval/univariate/regression/accelerated_life/eyring.py:15
Methodphi
(self, Z: ndarray, *params: float)
surpyval/univariate/regression/accelerated_life/eyring.py:37
Methodphi
(self, Z: ndarray, *params: float)
surpyval/univariate/regression/accelerated_life/general_log_linear.py:15
Methodphi
(self, Z: ndarray, *params: float)
surpyval/univariate/regression/accelerated_life/exponential.py:15
Methodphi
(self, Z: ndarray, *params: float)
surpyval/univariate/regression/accelerated_life/exponential.py:37
Methodphi
Calculate the life parameter for a distribution using the covariates / stresses, Z, and the parameters of the dual exponential model.
surpyval/univariate/regression/accelerated_life/dual_exponential.py:47
Methodphi
(self, Z: ndarray, *params: float)
surpyval/univariate/regression/accelerated_life/power_exponential.py:15
Methodphi_init
(self, life: float, Z: ndarray)
surpyval/univariate/regression/accelerated_life/lifemodel.py:21
Methodphi_init
(self, life: float, Z: ndarray)
surpyval/univariate/regression/accelerated_life/linear.py:20
Methodphi_init
(self, life: float, Z: ndarray)
surpyval/univariate/regression/accelerated_life/power.py:18
Methodphi_init
(self, life: float, Z: ndarray)
surpyval/univariate/regression/accelerated_life/dual_power.py:24
Methodphi_init
(self, life: float, Z: ndarray)
surpyval/univariate/regression/accelerated_life/eyring.py:20
Methodphi_init
(self, life: float, Z: ndarray)
surpyval/univariate/regression/accelerated_life/eyring.py:42
Methodphi_init
(self, life: float, Z: ndarray)
surpyval/univariate/regression/accelerated_life/general_log_linear.py:18
Methodphi_init
(self, life: float, Z: ndarray)
surpyval/univariate/regression/accelerated_life/exponential.py:20
Methodphi_init
(self, life: float, Z: ndarray)
surpyval/univariate/regression/accelerated_life/exponential.py:42
Methodphi_init
Initialize the parameters of the dual exponential model for the initial guess of the optimization. Parameters: -----
surpyval/univariate/regression/accelerated_life/dual_exponential.py:70
Methodphi_init
(self, life: float, Z: ndarray)
surpyval/univariate/regression/accelerated_life/power_exponential.py:24
Methodplot
r""" Creates a plot of the survival function. Two-sided confidence bounds are drawn as a shaded band in the same colour as th
surpyval/univariate/nonparametric/nonparametric.py:1118
Methodplot
A method to do a probability plot Parameters ---------- heuristic : {'Blom', 'Median', 'ECDF', 'Modal', 'Midpoint',
surpyval/univariate/parametric/mixture_model.py:342
Methodplot
r""" A method to plot the survival function, cumulative hazard function, hazard function and density function of the distribution usi
surpyval/univariate/regression/parametric_regression_model.py:553
Methodplot
Overlay the simulated MCF on the empirical MCF of the fitted data. Parameters ---------- ax: matplotlib axes, optio
surpyval/recurrent/simulation.py:339
Methodplot
(self, confidence=0.95, plot_bounds=True, ax=None, start=0.0)
surpyval/recurrent/nonparametric/mcf.py:89
Methodplot
Compute the inverse of the cumulative incidence function (CIF) based on the fitted model, if it's defined for the distribution.
surpyval/recurrent/parametric/parametric_recurrence.py:139
Methodplot
Overlay the MCF of every cause on a single axis.
surpyval/recurrent/competing_risks/nonparametric/cause_specific_mcf.py:60
Methodplot
PLots the CIF of the model against the data used to fit it. To do this, the plot method takes the average of the covariates, and
surpyval/recurrent/regression/proportional_intensity.py:101
Methodqf
r""" Quantile function for the Weibull distribution: .. math:: q(p) = \alpha \left ( -\ln \left ( 1 - p \right ) \right
surpyval/univariate/parametric/distributions/weibull.py:244
Methodqf
r""" Quantile function for the Logistic distribution: .. math:: q(p) = \\mu + \\sigma \\ln \\left ( \\frac{p}{1 - p} \\r
surpyval/univariate/parametric/distributions/logistic.py:204
Methodqf
r""" Quantile function for the Uniform Distribution: .. math:: q(p) = a + p(b - a) Parameters ---------
surpyval/univariate/parametric/distributions/uniform.py:237
Methodqf
r""" Quantile function for the Gumbel Distribution: .. math:: q(p) = \mu + \sigma\ln\left ( -\ln\left ( 1 - p \right ) \
surpyval/univariate/parametric/distributions/gumbel.py:221
Methodqf
r""" Quantile function for the LogLogistic distribution: .. math:: q(p) = \alpha \left ( \frac{p}{1 - p} \right )^{\frac
surpyval/univariate/parametric/distributions/loglogistic.py:242
Methodqf
r""" Quantile function for the Gamma Distribution: .. math:: q(p) = \frac{-\ln\left ( p \right )}{\lambda} Para
surpyval/univariate/parametric/distributions/gamma.py:276
Methodqf
r""" Quantile (inverse CDF) function for the Binomial distribution; the smallest number of events ``x`` such that :math:`F(x) \geq q`
surpyval/univariate/parametric/distributions/binomial.py:194
Methodqf
r""" Quantile function for the Exponential Distribution: .. math:: q(p) = \frac{-\ln\left ( 1 - p \right )}{\lambda}
surpyval/univariate/parametric/distributions/exponential.py:260
Methodqf
r""" Quantile function for the Rayleigh distribution: .. math:: q(p) = \sigma \sqrt{-2 \ln \left ( 1 - p \right )}
surpyval/univariate/parametric/distributions/rayleigh.py:246
Methodqf
r""" Instantaneous hazard rate for the ExpoWeibull Distribution: .. math:: q(p) = Parameters ----------
surpyval/univariate/parametric/distributions/expo_weibull.py:275
Methodqf
r""" Quantile function for the Gumbel LEV Distribution: .. math:: q(p) = \mu - \sigma\ln\left ( -\ln\left ( p \right ) \
surpyval/univariate/parametric/distributions/gumbel_lev.py:218
Methodrandom
( self, size: int | tuple[int, ...], *args, **kwargs )
surpyval/distribution.py:46
Methodrandom
(self, size: int, *args, **kwargs)
surpyval/distribution.py:68
Methodrandom
( self, size: int | tuple[int, ...], *args, **kwargs )
surpyval/distribution.py:99
Methodrandom
r""" Draws random samples from the fitted distribution. Each observed value x is drawn with the probability mass the estimated surviva
surpyval/univariate/nonparametric/nonparametric.py:477
Methodrandom
(self, size)
surpyval/univariate/parametric/mixture_model.py:235
Methodrandom
(cls, size)
surpyval/univariate/parametric/__init__.py:78
Methodrandom
r""" Draws random samples from the distribution in shape `size`, using the inverse transform method with the distribution's quantile
surpyval/univariate/parametric/parametric_fitter.py:105
Methodrandom
r""" A method to draw random samples from the distributions using the parameters found in the ``.params`` attribute. Paramet
surpyval/univariate/parametric/parametric.py:592
Methodrandom
r""" Draws random samples from the distribution in shape `size` Parameters ---------- size : integer or tuple of po
surpyval/univariate/parametric/distributions/bernoulli.py:119
Methodrandom
(self, size, T)
surpyval/univariate/parametric/distributions/exact_event_time.py:43
Methodrandom
r""" Draws random samples from the distribution in shape `size` Parameters ---------- size : integer or tuple of po
surpyval/univariate/parametric/distributions/binomial.py:311
Methodrandom
r""" A method to draw random samples from the distributions using the parameters found in the ``.params`` attribute. Paramet
surpyval/univariate/regression/parametric_regression_model.py:323
Methodrandom
(self, size, Z, *params)
surpyval/univariate/regression/accelerated_failure_time/accelerated_failure_time.py:93
Methodrandom
(self, size, Z, *params)
surpyval/univariate/regression/proportional_hazards/proportional_hazards_fitter.py:110
Methodrandom
(self, size, Z, *params)
surpyval/univariate/regression/accelerated_life/parameter_substitution.py:170
Methodrandom
Draw correlated samples; returns an array of shape ``(size, 2)``.
surpyval/multivariate/parametric/copula/copula_model.py:71
Methodsample
(ui)
surpyval/recurrent/parametric/parametric_recurrence.py:55
Methodsample
(ui)
surpyval/recurrent/regression/proportional_intensity.py:150
Methodsample
(ui)
surpyval/recurrent/renewal/ara.py:92
Methodsample
(ui)
surpyval/recurrent/renewal/generalized_renewal.py:94
Methodsample
(ui)
surpyval/recurrent/renewal/generalized_one_renewal.py:69
Methodsample
(ui)
surpyval/recurrent/renewal/ari.py:83
Methodsample_uv
(self, size, params, random_state=None)
surpyval/multivariate/parametric/copula/elliptical.py:61
Methodscore
( self, x: ArrayLike, Z: ArrayLike | NDArray, c: ArrayLike, tie_tol: f
surpyval/experimental/forest/forest.py:178
Functionset_random_seed
()
surpyval/tests/univariate/parametric/test_fit.py:53
Functionset_random_seed
()
surpyval/tests/univariate/regression/test_proportional_hazards.py:8
Methodsf
(self, x: ArrayLike, *args, **kwargs)
surpyval/distribution.py:93
Methodsf
(cls, x)
surpyval/univariate/parametric/__init__.py:66
Methodsf
r""" Survival (or reliability) function for the Bernoulli Distribution: .. math:: R(x) = 1 - p Parameters
surpyval/univariate/parametric/distributions/bernoulli.py:21
Methodsf
(self, x, T)
surpyval/univariate/parametric/distributions/exact_event_time.py:20
Methodsf
(self, x, Z, *params)
surpyval/univariate/regression/accelerated_failure_time/accelerated_failure_time.py:44
Methodsf
(self, x, Z, *params)
surpyval/univariate/regression/proportional_hazards/proportional_hazards_fitter.py:72
Methodsf
(self, x, Z, *params)
surpyval/univariate/regression/accelerated_life/parameter_substitution.py:122
Methodsf
( self, x: int | float | ArrayLike, Z: ArrayLike | NDArray )
surpyval/experimental/forest/tree.py:94
Methodsf
Returns the ensemble survival function Parameters ---------- x : int | float | ArrayLike Time samples Z :
surpyval/experimental/forest/forest.py:99
Methodsf
Joint survival ``P(X_1 > x_1, X_2 > x_2)``.
surpyval/multivariate/parametric/copula/copula_model.py:45
Functionsf_func
(params)
surpyval/tests/univariate/parametric/test_confidence_bounds.py:41
Methodsf_func
(phi)
surpyval/univariate/parametric/parametric.py:922
Functionsingleton_fitter
Bind the decorated class' name to a single configured instance. Use on a fitter whose ``__init__`` takes no required arguments. The name is r
surpyval/utils/fitter.py:16
Functionsksurv_Xy_to_surv_xZc
(X: DataFrame, y: NDArray)
surpyval/utils/surv_sksurv_transformations.py:23
Methodspearman_rho
(self, rho)
surpyval/multivariate/parametric/copula/elliptical.py:58
Methodspearman_rho
(self)
surpyval/multivariate/parametric/copula/copula_model.py:82
Methodspearman_rho
(self, *params)
surpyval/multivariate/parametric/copula/archimedean.py:38
Functionsuccess_run
Calculate the minimum success probability of a run of 'n' independent events for a given confidence level. Useful when you want to know, with
surpyval/univariate/nonparametric/success_run.py:4
Functionsurv_xZc_to_sksurv_Xy
Transforms surpyval's xZc format to scikit-survival's Xy format.
surpyval/utils/surv_sksurv_transformations.py:11
Methodtail_dependence
(self)
surpyval/multivariate/parametric/copula/copula_model.py:85
Methodtail_dependence
(self, theta)
surpyval/multivariate/parametric/copula/archimedean.py:92
Methodtail_dependence
(self, theta)
surpyval/multivariate/parametric/copula/archimedean.py:115
Functiontest_accelerated_life_fit_from_df
()
surpyval/tests/univariate/regression/test_dataframe_fit.py:129
Functiontest_accelerated_life_handles_truncation
()
surpyval/tests/univariate/regression/test_truncation.py:71
Functiontest_add_covariates
Test adding covariates
surpyval/tests/utils/test_surpyval_data.py:75
Functiontest_ara_general_memory_fits_and_simulates
()
surpyval/tests/recurrent/test_ara.py:49
← previousnext →1,001–1,100 of 1,523, ranked by callers