Skip to content

Commit

Permalink
Update dependencies (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
fraimondo authored Nov 30, 2023
1 parent c30c615 commit 2e7b152
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
6 changes: 3 additions & 3 deletions docs/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Requirements
``julearn`` is compatible with `Python`_ >= 3.8 and requires the following
packages:

* ``numpy>=1.24,<1.26``
* ``pandas>=1.5.0,<2.1``
* ``scikit-learn>=1.2.0``
* ``numpy>=1.24,<1.27``
* ``pandas>=1.5.0,<2.2``
* ``scikit-learn>=1.2,<1.4``
* ``statsmodels>=0.13,<0.15``

Running the examples require:
Expand Down
4 changes: 3 additions & 1 deletion julearn/stats/corrected_ttest.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def _corrected_std(
# kr = k times r, r times repeated k-fold crossvalidation,
# kr equals the number of times the model was evaluated
kr = len(differences)
corrected_var = np.var(differences, ddof=1) * (1 / kr + n_test / n_train)
corrected_var = np.var(differences, ddof=1, axis=0) * (
1 / kr + n_test / n_train
)
corrected_std = np.sqrt(corrected_var)
return corrected_std

Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ classifiers = [
"Programming Language :: Python :: 3.11",
]
dependencies = [
"numpy>=1.24,<1.26",
"pandas>=1.5.0,<2.1",
"scikit-learn>=1.2.0",
"numpy>=1.24,<1.27",
"pandas>=1.5.0,<2.2",
"scikit-learn>=1.2.0,<1.4",
"statsmodels>=0.13,<0.15",
]
dynamic = ["version"]
Expand All @@ -54,11 +54,11 @@ dev = ["tox", "pre-commit"]
docs = [
"seaborn>=0.12.2,<0.13",
"sphinx>=5.3.0,<7.3",
"sphinx-gallery>=0.13.0,<0.14",
"furo>=2022.9.29,<2023.0.0",
"sphinx-gallery>=0.13.0,<0.15",
"furo>=2022.9.29,<2024.0.0",
"sphinx_copybutton>=0.5.0,<0.6",
"numpydoc>=1.5.0,<1.6",
"towncrier==22.12.0",
"towncrier<24",
]
deslib = ["deslib>=0.3.5,<0.4"]
viz = [
Expand Down

0 comments on commit 2e7b152

Please sign in to comment.