예제 #1
0
    def test__select_candidates_non_parametric(self):
        # Run
        candidates = Univariate._select_candidates(
            parametric=ParametricType.NON_PARAMETRIC)

        # Assert
        assert candidates == [GaussianKDE]
예제 #2
0
    def test__select_candidates_semibounded(self):
        # Run
        candidates = Univariate._select_candidates(
            bounded=BoundedType.SEMI_BOUNDED)

        # Assert
        assert set(candidates) == {GammaUnivariate, LogLaplace}
예제 #3
0
    def test__select_candidates_bounded(self):
        # Run
        candidates = Univariate._select_candidates(bounded=BoundedType.BOUNDED)

        # Assert
        assert set(candidates) == {
            TruncatedGaussian, BetaUnivariate, UniformUnivariate
        }
예제 #4
0
    def test__select_candidates_unbounded(self):
        # Run
        candidates = Univariate._select_candidates(
            bounded=BoundedType.UNBOUNDED)

        # Assert
        assert set(candidates) == {
            GaussianKDE, GaussianUnivariate, StudentTUnivariate
        }
예제 #5
0
    def test__select_candidates(self):
        # Run
        candidates = Univariate._select_candidates()

        # Assert
        assert set(candidates) == {
            GaussianKDE, GaussianUnivariate, TruncatedGaussian, BetaUnivariate,
            GammaUnivariate, StudentTUnivariate, UniformUnivariate
        }
예제 #6
0
    def test__select_candidates_parametric(self):
        # Run
        candidates = Univariate._select_candidates(
            parametric=ParametricType.PARAMETRIC)

        # Assert
        assert set(candidates) == {
            GaussianUnivariate, TruncatedGaussian, BetaUnivariate,
            GammaUnivariate, StudentTUnivariate, UniformUnivariate
        }