Skip to content
Draft
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
2 changes: 1 addition & 1 deletion .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
run: echo "${{ github.ref }}" >> docs/_build/ref.txt

- name: Save docs artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: docs
path: docs/_build/*
45 changes: 1 addition & 44 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,49 +63,6 @@ jobs:

- uses: codecov/codecov-action@v1

TestDev:
name: Ubuntu / Python ${{ matrix.python-version }} / TensorFlow Nightly / Scikit-Learn Nightly
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
fail-fast: false

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install and Set Up Poetry
run: |
python -m pip install --upgrade poetry
poetry config virtualenvs.in-project true
poetry run python -m pip install --upgrade pip

- name: Install Dependencies
run: |
poetry remove scikit-learn
poetry install

- name: Install Nightly Versions
if: always()
run: |
poetry run python -m pip install -U scipy
poetry run python -m pip install -U git+https://github.com/keras-team/keras.git
poetry run python -m pip install -U --pre --extra-index https://pypi.anaconda.org/scipy-wheels-nightly/simple scikit-learn

- name: Test with pytest
if: always()
continue-on-error: true
run: |
poetry run python -m pip freeze
poetry run python -m pytest -v --cov=scikeras --cov-report xml --color=yes

- uses: codecov/codecov-action@v1

TestOldest:
name: Ubuntu / Python ${{ matrix.python-version }} / TF ${{ matrix.tf-version }} / Scikit-Learn ${{ matrix.sklearn-version }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -148,7 +105,7 @@ jobs:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [MacOS, Windows] # test all OSs except Ubuntu, which is already running other tests
os: [MacOS] # test all OSs except Ubuntu, which is already running other tests
python-version: ["3.9", "3.11"] # test only the two extremes of supported Python versions
tensorflow-version: ["2.16.1"] # test only the two extremes of supported TF versions
fail-fast: false
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Scikit-Learn Wrapper for Keras

> [!WARNING]
> This project is now deprecated. Keras has re-introduced wrappers with a similar API to those in SciKeras, but they will be better maintained.
> SciKeras was a project to meet a specific need that was developed by a single developer.
> I no longer use Keras nor do I have the time to maintain this project, which became increasingly difficult with multiple versions of Keras and Scikit-Learn to support.
> I thank all of the users and contributors over the years and hope that the new Keras wrappers will meet your needs.
> TODO: add link to Keras docs and release here.

[![Build Status](https://github.com/adriangb/scikeras/workflows/Tests/badge.svg)](https://github.com/adriangb/scikeras/actions?query=workflow%3ATests+branch%3Amaster)
[![Coverage Status](https://codecov.io/gh/adriangb/scikeras/branch/master/graph/badge.svg)](https://codecov.io/gh/adriangb/scikeras)
[![Docs](https://github.com/adriangb/scikeras/workflows/Build%20Docs/badge.svg)](https://www.adriangb.com/scikeras/)
Expand Down
14 changes: 9 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ license = "MIT"
name = "scikeras"
readme = "README.md"
repository = "https://github.com/adriangb/scikeras"
version = "0.13.0"
version = "0.14.0"

[tool.poetry.dependencies]
python = ">=3.9.0,<4"
scikit-learn = ">=1.4.2"
keras = ">=3.2.0"
python = ">=3.9.0,<3.13"
scikit-learn = ">=1.4.2,<1.6.0"
keras = ">=3.2.0,<3.7.0"
tensorflow = { version = ">=2.16.1", optional = true }

[tool.poetry.extras]
Expand All @@ -52,7 +52,7 @@ pytest = ">=7.1.2"
pytest-cov = ">=3.0.0"
sphinx = ">=5.0.2"
tensorflow = ">=2.16.1"
tensorflow-io-gcs-filesystem = { version = "<=0.31.0", markers = "python_version < '3.12' and sys_platform == 'win32'" }
tensorflow-io-gcs-filesystem = { version = "0.37.1" }

[tool.ruff]
select = [
Expand Down Expand Up @@ -82,3 +82,7 @@ show_missing = true
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.8"]

# ignore pytest warnings about missing __file__ attribute
[tool.pytest.ini_options]
filterwarnings = "ignore::DeprecationWarning:scikeras"
13 changes: 13 additions & 0 deletions scikeras/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
__author__ = """Adrian Garcia Badaracco"""

import importlib.metadata as importlib_metadata
from warnings import warn

__version__ = importlib_metadata.version("scikeras") # type: ignore

Expand All @@ -15,3 +16,15 @@
_keras.losses.Loss.__reduce__ = _saving_utils.pack_keras_loss
_keras.metrics.Metric.__reduce__ = _saving_utils.pack_keras_metric
_keras.optimizers.Optimizer.__reduce__ = _saving_utils.pack_keras_optimizer

warn(
"""
This project is now deprecated. Keras has re-introduced wrappers with a similar API to those in SciKeras, but they will be better maintained.
SciKeras was a project to meet a specific need that was developed by a single developer.
I no longer use Keras nor do I have the time to maintain this project, which became increasingly difficult with multiple versions of Keras and Scikit-Learn to support.
I thank all of the users and contributors over the years and hope that the new Keras wrappers will meet your needs.
TODO: add link to Keras docs and release here.
""",
DeprecationWarning,
stacklevel=1,
)
Loading