Skip to content

Commit 0780bc9

Browse files
authored
MAINT update dependencies for CI (#1145)
* MAINT update dependencies * fix scipy for older scikit-learn * try downgrading tensorflow * iter * iter * iter
1 parent fe591e6 commit 0780bc9

File tree

5 files changed

+9001
-9157
lines changed

5 files changed

+9001
-9157
lines changed

.github/workflows/linters.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v4
18-
- uses: prefix-dev/[email protected].8
18+
- uses: prefix-dev/[email protected].14
1919
with:
20-
pixi-version: v0.39.2
20+
pixi-version: v0.51.0
2121
frozen: true
2222

2323
- name: Run tests

.github/workflows/tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
ci-py310-min-tensorflow,
2121
ci-py311-sklearn-1-4,
2222
ci-py311-sklearn-1-5,
23+
ci-py312-sklearn-1-6,
2324
ci-py311-latest-keras,
2425
ci-py311-latest-tensorflow,
2526
ci-py313-latest-dependencies,
@@ -37,9 +38,9 @@ jobs:
3738
runs-on: ${{ matrix.os }}
3839
steps:
3940
- uses: actions/checkout@v4
40-
- uses: prefix-dev/[email protected].8
41+
- uses: prefix-dev/[email protected].14
4142
with:
42-
pixi-version: v0.39.2
43+
pixi-version: v0.51.0
4344
environments: ${{ matrix.environment }}
4445
# we can freeze the environment and manually bump the dependencies to the
4546
# latest version time to time.

imblearn/keras/tests/test_generator.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ def data():
2424
X, y = make_imbalance(
2525
iris.data, iris.target, sampling_strategy={0: 30, 1: 50, 2: 40}
2626
)
27-
y = LabelBinarizer().fit_transform(y)
27+
X = X.astype(np.float32)
28+
y = LabelBinarizer().fit_transform(y).astype(np.int32)
2829
return X, y
2930

3031

@@ -103,7 +104,7 @@ def test_balanced_batch_generator_function_no_return_indices(data):
103104
(None, None),
104105
(RandomOverSampler(), None),
105106
(NearMiss(), None),
106-
(None, np.random.uniform(size=120)),
107+
(None, np.random.uniform(size=120).astype(np.float32)),
107108
],
108109
)
109110
def test_balanced_batch_generator_function(data, sampler, sample_weight):
@@ -117,6 +118,7 @@ def test_balanced_batch_generator_function(data, sampler, sample_weight):
117118
batch_size=10,
118119
random_state=42,
119120
)
121+
print(next(training_generator))
120122
model.fit(
121123
training_generator,
122124
steps_per_epoch=steps_per_epoch,

0 commit comments

Comments
 (0)