From a487c5c45a8bb56788c69e7f0859fc2c0cd93534 Mon Sep 17 00:00:00 2001 From: Tom Pollard Date: Thu, 13 Jun 2024 00:11:09 -0400 Subject: [PATCH] Remove inheritance of object for clarity. --- tableone/modality.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tableone/modality.py b/tableone/modality.py index bc28f15..4b8c7a4 100644 --- a/tableone/modality.py +++ b/tableone/modality.py @@ -1074,7 +1074,7 @@ def least_concave_majorant_sorted(x, y, eps=1e-12): return np.array(i) -class KernelDensityDerivative(object): +class KernelDensityDerivative: """ Kernel density derivative estimator. @@ -1302,7 +1302,7 @@ def gamma(beta): return 2*beta*betafun(beta-1./2, 1./2)**2 - d_hat return RefStudentt(beta) -class RefGaussian(object): +class RefGaussian: """ Reference Gaussian distribution for generating random samples. @@ -1322,7 +1322,7 @@ def sample(self, n): return np.random.randn(n) -class RefBeta(object): +class RefBeta: """ Reference Beta distribution for generating random samples, parameterized by a shape parameter. @@ -1348,7 +1348,7 @@ def sample(self, n): return np.random.beta(self.beta, self.beta, n) -class RefStudentt(object): +class RefStudentt: """ Reference Student's t distribution for generating random samples, parameterized by a degrees of freedom parameter.