Installation

Users Installation

To install with pip, run:

pip install scikeras

We recommend to use a virtual environment for this.

You will need to manually install TensorFlow; due to TensorFlow’s packaging it is not a direct dependency of SciKeras. You can do this by running:

pip install tensorflow

This allows you to install an alternative TensorFlow binary, for example tensorflow-cpu.

You can also install SciKeras without any dependencies, for example to install a nightly version of Scikit-Learn:

pip install --no-deps scikeras

As of SciKeras v0.5.0, the minimum required versions are as follows:

  • TensorFlow: v2.7.0

  • Scikit-Learn: v1.0.0

Developer Installation

If you would like to use the must recent additions to SciKeras or help development, you should install SciKeras from source.

We use Poetry to manage dependencies.

git clone https://github.com/adriangb/scikeras.git
cd scikeras
poetry install
poetry shell

pytest -v