Skip to content

Commit 947f956

Browse files
АнгелинаАнгелина
authored andcommitted
refactor: Rename algorithm classes and folders
* Rename NVSemiParametricGEstimationPostWidder → NVEstimationDensityPW * Rename SemiParametricGEstimationPostWidder → NMVEstimationDensityPW * Rename folders in src/procedures * Rename tests/algorithms → tests/procedures lgorithms/semiparametric_sigma_estimation/__init__.py -> tests/procedures/nm_procedures/semiparametric_sigma_estimation/__init__.py
1 parent 3c5c1b2 commit 947f956

32 files changed

+16
-16
lines changed

src/estimators/abstract_estimator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class AbstractEstimator:
1414
algorithm_name: A string indicating chosen algorithm.
1515
params: A dictionary of algorithm parameters.
1616
estimate_result: Estimation result.
17-
_registry: Registry that contains classes of all algorithms.
17+
_registry: Registry that contains classes of all procedures.
1818
_purpose: Defines purpose of algorithm, one of the registry key.
1919
"""
2020

@@ -47,7 +47,7 @@ def set_params(self, algorithm_name: str, params: dict | None = None) -> Self:
4747
return self
4848

4949
def get_available_algorithms(self) -> list[str]:
50-
"""Get all algorithms that can be used for current estimator class"""
50+
"""Get all procedures that can be used for current estimator class"""
5151
return [key[0] for key in self._registry.register_of_names.keys() if key[1] == self._purpose]
5252

5353
def estimate(self, sample: _typing.ArrayLike) -> EstimateResult:

src/procedures/__init__.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
from src.procedures.semiparametric.nm_semi_param_algorithms.g_estimation_convolution import (
1+
from src.procedures.semiparametric.nm_semiparametric.g_estimation_convolution import (
22
NMEstimationDensityInvMT,
33
)
4-
from src.procedures.semiparametric.nm_semi_param_algorithms.sigma_estimation_eigenvalue_based import (
4+
from src.procedures.semiparametric.nm_semiparametric.sigma_estimation_eigenvalue_based import (
55
NMEstimationSigmaEigenvals,
66
)
7-
from src.procedures.semiparametric.nm_semi_param_algorithms.sigma_estimation_empirical import (
7+
from src.procedures.semiparametric.nm_semiparametric.sigma_estimation_empirical import (
88
NMEstimationSigmaLaplace,
99
)
10-
from src.procedures.semiparametric.nv_semi_param_algorithms.g_estimation_given_mu import (
10+
from src.procedures.semiparametric.nv_semiparametric.g_estimation_given_mu import (
1111
NVEstimationDensityInvMT,
1212
)
13-
from src.procedures.semiparametric.nv_semi_param_algorithms.g_estimation_post_widder import (
13+
from src.procedures.semiparametric.nv_semiparametric.g_estimation_post_widder import (
1414
NMVEstimationDensityPW,
1515
)
16-
from src.procedures.semiparametric.nvm_semi_param_algorithms.g_estimation_given_mu import (
16+
from src.procedures.semiparametric.nvm_semiparametric.g_estimation_given_mu import (
1717
NMVEstimationDensityInvMTquad,
1818
)
19-
from src.procedures.semiparametric.nvm_semi_param_algorithms.g_estimation_given_mu_rqmc_based import (
19+
from src.procedures.semiparametric.nvm_semiparametric.g_estimation_given_mu_rqmc_based import (
2020
NMVEstimationDensityInvMTquadRQMCBased,
2121
)
22-
from src.procedures.semiparametric.nvm_semi_param_algorithms.g_estimation_post_widder import (
23-
SemiParametricGEstimationPostWidder,
22+
from src.procedures.semiparametric.nvm_semiparametric.g_estimation_post_widder import (
23+
NMVEstimationDensityPW,
2424
)
25-
from src.procedures.semiparametric.nvm_semi_param_algorithms.mu_estimation import (NMVEstimationMu)
25+
from src.procedures.semiparametric.nvm_semiparametric.mu_estimation import (NMVEstimationMu)
2626
from src.register.algorithm_purpose import AlgorithmPurpose
2727
from src.register.register import Registry
2828

@@ -42,5 +42,5 @@
4242
NMVEstimationDensityInvMTquadRQMCBased
4343
)
4444
ALGORITHM_REGISTRY.register("density_estim_post_widder", AlgorithmPurpose.NMV_SEMIPARAMETRIC)(
45-
SemiParametricGEstimationPostWidder
45+
NMVEstimationDensityPW
4646
)

0 commit comments

Comments
 (0)