From 9b83b912fdcec496c5e30d7be4cb6dc2523da370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20Kir=C3=A1ly?= Date: Fri, 19 Apr 2024 18:16:02 +0100 Subject: [PATCH] [ENH] Johnson QP-distributions - add some missing capability tags (#253) Adds some missing capability tags to the Johnson QPD distributions. Includes minor improvements to the docstring. --- skpro/distributions/qpd.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/skpro/distributions/qpd.py b/skpro/distributions/qpd.py index 690ba538c..4601cc275 100644 --- a/skpro/distributions/qpd.py +++ b/skpro/distributions/qpd.py @@ -39,9 +39,9 @@ class QPD_S(BaseDistribution): quantile function value of quantile ``1 - alpha`` lower : float lower bound of semi-bounded range (default is 0) - version: str + version: str, optional, default="normal" options are ``normal`` (default) or ``logistic`` - dist_shape: str + dist_shape: float, optional, default=0.0 parameter modifying the logistic base distribution via sinh/arcsinh-scaling (only active in sinhlogistic version) @@ -68,8 +68,8 @@ class QPD_S(BaseDistribution): "python_dependencies": "cyclic_boosting>=1.2.5", # estimator tags # -------------- - "capabilities:approx": [], - "capabilities:exact": ["mean", "var", "cdf", "ppf"], + "capabilities:approx": ["pdfnorm", "energy"], + "capabilities:exact": ["mean", "var", "cdf", "ppf", "pdf", "log_pdf"], "distr:measuretype": "continuous", } @@ -266,9 +266,9 @@ class QPD_B(BaseDistribution): lower bound of semi-bounded range upper : float upper bound of supported range - version: str + version: str, optional, default="normal" options are ``normal`` (default) or ``logistic`` - dist_shape: str + dist_shape: float, optional, default=0.0 parameter modifying the logistic base distribution via sinh/arcsinh-scaling (only active in sinhlogistic version) @@ -296,8 +296,8 @@ class QPD_B(BaseDistribution): "python_dependencies": "cyclic_boosting>=1.2.5", # estimator tags # -------------- - "capabilities:approx": [], - "capabilities:exact": ["mean", "var", "cdf", "ppf"], + "capabilities:approx": ["pdfnorm", "energy"], + "capabilities:exact": ["mean", "var", "cdf", "ppf", "pdf", "log_pdf"], "distr:measuretype": "continuous", } @@ -497,9 +497,9 @@ class QPD_U(BaseDistribution): quantile function value of quantile 0.5 qv_high : float or array_like[float] quantile function value of quantile ``1 - alpha`` - version: str + version: str, optional, default="normal" options are ``normal`` (default) or ``logistic`` - dist_shape: str + dist_shape: float, optional, default=0.0 parameter modifying the logistic base distribution via sinh/arcsinh-scaling (only active in sinhlogistic version) @@ -525,8 +525,8 @@ class QPD_U(BaseDistribution): "python_dependencies": "cyclic_boosting>=1.2.5", # estimator tags # -------------- - "capabilities:approx": [], - "capabilities:exact": ["mean", "var", "cdf", "ppf"], + "capabilities:approx": ["pdfnorm", "energy"], + "capabilities:exact": ["mean", "var", "cdf", "ppf", "pdf", "log_pdf"], "distr:measuretype": "continuous", }