Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👽️ stats: 1.15.0 new distribution infrastructure #360

Merged
merged 16 commits into from
Dec 21, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .mypyignore-todo
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
scipy\.stats\.__all__
scipy\.stats\.(Uniform|Normal|Mixture)
scipy\.stats\.(abs|truncate|exp|log)
scipy\.stats\.make_distribution
scipy\.stats\.order_statistic
scipy\.stats\.(Normal|Uniform)
scipy\.stats\.(_distribution_infrastructure\.)?(abs|exp|log|make_distribution|order_statistic)
scipy\.stats\._distribution_infrastructure\.(MonotonicTransformed|Folded|OrderStatistic)Distribution\.__init__
24 changes: 15 additions & 9 deletions scipy-stubs/stats/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ from ._bws_test import bws_test
from ._censored_data import CensoredData
from ._correlation import chatterjeexi
from ._covariance import Covariance

# TODO(jorenham)
from ._distribution_infrastructure import Mixture, truncate # , abs, exp, log, make_distribution, order_statistic
from ._entropy import differential_entropy, entropy
from ._fit import fit, goodness_of_fit
from ._hypotests import (
Expand Down Expand Up @@ -72,6 +75,9 @@ from ._multivariate import (
vonmises_fisher,
wishart,
)

# TODO(jorenham)
# `from ._new_distributions import Normal, Uniform
from ._page_trend_test import page_trend_test
from ._resampling import (
BootstrapMethod,
Expand Down Expand Up @@ -302,9 +308,13 @@ __all__ = [
"Covariance",
"DegenerateDataWarning",
"FitError",
"Mixture",
"MonteCarloMethod",
"NearConstantInputWarning",
# "Normal",
"PermutationMethod",
# "Uniform",
# "abs",
"alexandergovern",
"alpha",
"anderson",
Expand Down Expand Up @@ -371,6 +381,7 @@ __all__ = [
"entropy",
"epps_singleton_2samp",
"erlang",
# "exp",
"expectile",
"expon",
"exponnorm",
Expand Down Expand Up @@ -450,6 +461,7 @@ __all__ = [
"levy_stable",
"linregress",
"lmoment",
# "log",
"loggamma",
"logistic",
"loglaplace",
Expand All @@ -458,6 +470,7 @@ __all__ = [
"logser",
"loguniform",
"lomax",
# "make_distribution",
"mannwhitneyu",
"matrix_normal",
"maxwell",
Expand Down Expand Up @@ -493,6 +506,7 @@ __all__ = [
"normaltest",
"norminvgauss",
"obrientransform",
# "order_statistic",
"ortho_group",
"page_trend_test",
"pareto",
Expand Down Expand Up @@ -560,6 +574,7 @@ __all__ = [
"trim1",
"trim_mean",
"trimboth",
"truncate",
"truncexpon",
"truncnorm",
"truncpareto",
Expand Down Expand Up @@ -598,13 +613,4 @@ __all__ = [
"zipfian",
"zmap",
"zscore",
# "Mixture",
# "Normal",
# "Uniform",
# "abs",
# "exp",
# "log",
# "make_distribution",
# "order_statistic",
# "truncate",
]
Loading
Loading