diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 88dd8dcfa..d4912db10 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,2 +1,2 @@ -FROM mcr.microsoft.com/vscode/devcontainers/python:3.10 +FROM mcr.microsoft.com/vscode/devcontainers/python:3.11 COPY setup.sh /setup.sh diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index dc76f5763..88db84abf 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -2,7 +2,7 @@ name: Tests on: push: - branches: [ master ] + branches: [master] pull_request: release: types: [created] @@ -13,35 +13,35 @@ jobs: env: KERAS_BACKEND: torch steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.10 - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - name: Get pip cache dir - id: pip-cache - run: | - python -m pip install --upgrade pip setuptools - echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT - - name: pip cache - uses: actions/cache@v3 - with: - path: ${{ steps.pip-cache.outputs.dir }} - key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }} - - name: Install dependencies - run: | + - uses: actions/checkout@v3 + - name: Set up Python 3.11 + uses: actions/setup-python@v4 + with: + python-version: "3.11" + - name: Get pip cache dir + id: pip-cache + run: | + python -m pip install --upgrade pip setuptools + echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT + - name: pip cache + uses: actions/cache@v3 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }} + - name: Install dependencies + run: | pip install torch --index-url https://download.pytorch.org/whl/cpu pip install -e ".[tests]" --progress-bar off - - name: Test with pytest - run: | - pytest --cov=autokeras --cov-report xml:coverage.xml - - name: Codecov - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: ./coverage.xml - flags: unittests - fail_ci_if_error: true + - name: Test with pytest + run: | + pytest --cov=autokeras --cov-report xml:coverage.xml + - name: Codecov + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: ./coverage.xml + flags: unittests + fail_ci_if_error: true format: name: Check the code format runs-on: ubuntu-latest @@ -58,10 +58,10 @@ jobs: KERAS_BACKEND: torch steps: - uses: actions/checkout@v3 - - name: Set up Python 3.10 + - name: Set up Python 3.11 uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: "3.11" - name: Install dependencies run: | python -m pip install --upgrade pip setuptools @@ -80,18 +80,18 @@ jobs: env: KERAS_BACKEND: torch steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - name: Install dependencies - run: | - python -m pip install --upgrade pip build twine - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python -m build - twine upload dist/* + - uses: actions/checkout@v3 + - name: Set up Python 3.11 + uses: actions/setup-python@v4 + with: + python-version: "3.11" + - name: Install dependencies + run: | + python -m pip install --upgrade pip build twine + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python -m build + twine upload dist/* diff --git a/README.md b/README.md index eddcce436..cb2fb7345 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,14 @@ Official Website: [autokeras.com](https://autokeras.com) ## + AutoKeras: An AutoML system based on Keras. It is developed by DATA Lab at Texas A&M University. The goal of AutoKeras is to make machine learning accessible to everyone. ## Learning resources -* A short example. +- A short example. ```python import autokeras as ak @@ -26,9 +27,9 @@ clf.fit(x_train, y_train) results = clf.predict(x_test) ``` -* [Official website tutorials](https://autokeras.com/tutorial/overview/). -* The book of [*Automated Machine Learning in Action*](https://www.manning.com/books/automated-machine-learning-in-action?query=automated&utm_source=jin&utm_medium=affiliate&utm_campaign=affiliate&a_aid=jin). -* The LiveProjects of [*Image Classification with AutoKeras*](https://www.manning.com/liveprojectseries/autokeras-ser). +- [Official website tutorials](https://autokeras.com/tutorial/overview/). +- The book of [_Automated Machine Learning in Action_](https://www.manning.com/books/automated-machine-learning-in-action?query=automated&utm_source=jin&utm_medium=affiliate&utm_campaign=affiliate&a_aid=jin). +- The LiveProjects of [_Image Classification with AutoKeras_](https://www.manning.com/liveprojectseries/autokeras-ser).

drawing   @@ -36,7 +37,6 @@ results = clf.predict(x_test) drawing

- ## Installation To install the package, please use the `pip` installation as follows: @@ -47,7 +47,7 @@ pip3 install autokeras Please follow the [installation guide](https://autokeras.com/install) for more details. -**Note:** Currently, AutoKeras is only compatible with **Python >= 3.7** and **TensorFlow >= 2.8.0**. +**Note:** AutoKeras requires **Python >= 3.11** and **Keras >= 3.0.0**. ## Community @@ -70,7 +70,7 @@ Thank all the contributors! ## Cite this work -Haifeng Jin, François Chollet, Qingquan Song, and Xia Hu. "AutoKeras: An AutoML Library for Deep Learning." *the Journal of machine Learning research* 6 (2023): 1-6. ([Download](http://jmlr.org/papers/v24/20-1355.html)) +Haifeng Jin, François Chollet, Qingquan Song, and Xia Hu. "AutoKeras: An AutoML Library for Deep Learning." _the Journal of machine Learning research_ 6 (2023): 1-6. ([Download](http://jmlr.org/papers/v24/20-1355.html)) Biblatex entry: diff --git a/docker/pre-commit.Dockerfile b/docker/pre-commit.Dockerfile index d4370f5af..8b09c6919 100644 --- a/docker/pre-commit.Dockerfile +++ b/docker/pre-commit.Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.7 +FROM python:3.11 RUN pip install flake8 black isort diff --git a/docs/tutobooks.py b/docs/tutobooks.py index 76226a1fe..5f0b5bb94 100644 --- a/docs/tutobooks.py +++ b/docs/tutobooks.py @@ -511,7 +511,7 @@ def flush(output_lines, final_lines): "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.0", + "version": "3.11.0", }, }, "nbformat": 4, diff --git a/pyproject.toml b/pyproject.toml index 6b9fac791..0642c375a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ authors = [ ] description = "AutoML for deep learning" readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.11" license = {text = "Apache License 2.0"} dynamic = ["version"] classifiers = [ @@ -17,10 +17,10 @@ classifiers = [ "Intended Audience :: Education", "Intended Audience :: Science/Research", "License :: OSI Approved :: Apache Software License", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3 :: Only", "Topic :: Scientific/Engineering :: Mathematics", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Libraries",