Skip to content

Commit ab7e220

Browse files
authored
Update dependencies (#11)
1 parent c1e9257 commit ab7e220

File tree

10 files changed

+235
-212
lines changed

10 files changed

+235
-212
lines changed

.github/workflows/test.yml

+22-2
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,33 @@ jobs:
2424
runs-on: ubuntu-latest
2525
strategy:
2626
matrix:
27-
python-version: ["3.10", "3.11"]
27+
python-version: ["3.10", "3.11", "3.12"]
2828
steps:
2929
- uses: actions/checkout@v2
3030
- name: Setup Python
3131
uses: actions/setup-python@v2
3232
with:
33-
python-version: ${{ matrix.python }}
33+
python-version: ${{ matrix.python-version }}
34+
- name: Install pipx
35+
run: python -m pip install --user pipx
36+
- name: Install poetry
37+
run: pipx install poetry
38+
- name: Install dependencies
39+
run: poetry install
40+
- name: Run pytest
41+
run: poetry run pytest -vv tests
42+
43+
test-windows:
44+
runs-on: windows-latest
45+
strategy:
46+
matrix:
47+
python-version: ["3.10", "3.11", "3.12"]
48+
steps:
49+
- uses: actions/checkout@v2
50+
- name: Setup Python
51+
uses: actions/setup-python@v2
52+
with:
53+
python-version: ${{ matrix.python-version }}
3454
- name: Install pipx
3555
run: python -m pip install --user pipx
3656
- name: Install poetry

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ https://github.com/sylwekczmil/cacp/tree/main/cacp_examples_incremental.
154154
.. code:: python3
155155
156156
import river
157-
from river.ensemble import AdaptiveRandomForestClassifier
157+
from river.forest import ARFClassifier
158158
from river.naive_bayes import GaussianNB
159159
from river.neighbors import KNNClassifier
160160
from river.tree import HoeffdingTreeClassifier
@@ -174,7 +174,7 @@ https://github.com/sylwekczmil/cacp/tree/main/cacp_examples_incremental.
174174
175175
# select incremental classifiers
176176
experimental_classifiers = [
177-
('ARF', lambda n_inputs, n_classes: AdaptiveRandomForestClassifier()),
177+
('ARF', lambda n_inputs, n_classes: ARFClassifier()),
178178
('HAT', lambda n_inputs, n_classes: HoeffdingTreeClassifier()),
179179
('KNN', lambda n_inputs, n_classes: KNNClassifier()),
180180
('GNB', lambda n_inputs, n_classes: GaussianNB()),

cacp/gui/external/river_library/dataset.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def from_river_dataset(cls, river_dataset: Dataset):
2121

2222
def docs_url(self):
2323
docs_version = river.__version__
24-
docs_api_sub_path = "synth" if self == RiverDataSetType.SYNTHETIC else "datasets"
24+
docs_api_sub_path = "datasets/synth" if self == RiverDataSetType.SYNTHETIC else "datasets"
2525
return f"https://riverml.xyz/{docs_version}/api/{docs_api_sub_path}/"
2626

2727

Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
,Name,Class Name,Library,Type
2-
1,ARF,AdaptiveRandomForest,river,incremental
3-
2,GNB,GaussianNB,river,incremental
4-
3,HAT,HoeffdingTree,river,incremental
5-
4,KNN,KNN,river,incremental
2+
1,ARF,ARFClassifier,river,INCREMENTAL
3+
2,GNB,GaussianNB,river,INCREMENTAL
4+
3,HAT,HoeffdingTreeClassifier,river,INCREMENTAL
5+
4,KNN,KNNClassifier,river,INCREMENTAL

cacp_examples_incremental/example_result/info/classifiers.tex

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
\hline
77
& Name & Class Name & Library & Type \\
88
\hline
9-
1 & ARF & AdaptiveRandomForest & river & incremental \\
10-
2 & GNB & GaussianNB & river & incremental \\
11-
3 & HAT & HoeffdingTree & river & incremental \\
12-
4 & KNN & KNN & river & incremental \\
9+
1 & ARF & ARFClassifier & river & INCREMENTAL \\
10+
2 & GNB & GaussianNB & river & INCREMENTAL \\
11+
3 & HAT & HoeffdingTreeClassifier & river & INCREMENTAL \\
12+
4 & KNN & KNNClassifier & river & INCREMENTAL \\
1313
\hline
1414
\end{tabular}
1515
\end{table}

cacp_examples_incremental/experiment.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import river
2-
from river.ensemble import AdaptiveRandomForestClassifier
2+
from river.forest import ARFClassifier
33
from river.naive_bayes import GaussianNB
44
from river.neighbors import KNNClassifier
55
from river.tree import HoeffdingTreeClassifier
@@ -19,7 +19,7 @@
1919

2020
# select incremental classifiers
2121
experimental_classifiers = [
22-
('ARF', lambda n_inputs, n_classes: AdaptiveRandomForestClassifier()),
22+
('ARF', lambda n_inputs, n_classes: ARFClassifier()),
2323
('HAT', lambda n_inputs, n_classes: HoeffdingTreeClassifier()),
2424
('KNN', lambda n_inputs, n_classes: KNNClassifier()),
2525
('GNB', lambda n_inputs, n_classes: GaussianNB()),

poetry.lock

+194-191
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "cacp"
3-
version = "1.0.3"
3+
version = "1.0.4"
44
description = ""
55
authors = [
66
"Sylwester Czmil <[email protected]>",
@@ -10,7 +10,7 @@ authors = [
1010
readme = "README.rst"
1111

1212
[tool.poetry.dependencies]
13-
python = ">=3.10.0,<4.0"
13+
python = ">=3.10.0,<3.13"
1414
dash = {version = "^2.13.0", extras = ["diskcache"]}
1515
dash-bootstrap-components = "^1.5.0"
1616
dash-rjsf = "^0.0.4"
@@ -20,9 +20,9 @@ Jinja2 = "^3.1.2"
2020
joblib = "^1.3.2"
2121
matplotlib = "^3.8.0"
2222
numpy = "^1.25.2"
23-
pandas = "^1.5.3"
23+
pandas = "^2.2.0"
2424
pydantic = "^1.10.12"
25-
river = "^0.19.0"
25+
river = "^0.21.0"
2626
scikit-learn = "^1.3.0"
2727
tinydb = "^4.8.0"
2828
tqdm = "^4.66.1"

tests/gui/external/test_dataset.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ def test_parse_river_dataset():
8282

8383

8484
def test_list_keel_datasets():
85-
assert len(RiverDatasetModel.all()) == 53
85+
assert len(RiverDatasetModel.all()) == 54

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
skipsdist = true
3-
envlist = flake8, python3.10, python3.11
3+
envlist = flake8, python3.10, python3.11, python3.12
44

55
[testenv]
66
allowlist_externals = poetry

0 commit comments

Comments
 (0)