Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-2019]
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -91,12 +91,12 @@ jobs:
- name: Test with pytest
if: matrix.python-version != '3.10'
run: |
pytest test/
pytest test/ --ignore=test/autogen
- name: Coverage
if: matrix.python-version == '3.10'
run: |
pip install coverage
coverage run -a -m pytest test
coverage run -a -m pytest test --ignore=test/autogen
coverage xml
- name: Upload coverage to Codecov
if: matrix.python-version == '3.10'
Expand Down
5 changes: 4 additions & 1 deletion flaml/automl/task/generic_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,10 @@ def evaluate_model_CV(
elif isinstance(kf, TimeSeriesSplit):
kf = kf.split(X_train_split, y_train_split)
else:
kf = kf.split(X_train_split)
try:
kf = kf.split(X_train_split)
except TypeError:
kf = kf.split(X_train_split, y_train_split)

for train_index, val_index in kf:
if shuffle:
Expand Down
Loading