Skip to content

A complete example of creating a product recommender system. More specifically, using retail data to define, train, and serve a retrieval model using the TensorFlow Recommenders (TFRS) module.

Notifications You must be signed in to change notification settings

msvensson222/tfrs-retail-example

Repository files navigation

TensorFlow Recommenders retail example

A complete example of using retail data to define, train, and serve a retrieval model using the TFRS module.

Python Verison Management

We're using pyenv to manage our Python version, and this is specified in a .python-version file.

To get started, make sure you have the correct python version installed with pyenv:

pyenv install `cat .python-version`
pyenv local `cat .python-version`  # Activate the correct python version

Package Management

We're using Poetry for python package management.

Poetry

This is used to create a virtual environment and install all python packages inside.

To install poetry just run:

$ curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -

Once installed, you can install all the required packages (including dev packages) with the following:

$ poetry install

To enter the virtualenv in order to run commands with the installed packages, use

$ poetry shell

which will activate the virtualenv for you.

Jupyter

You may need to create a kernel before launching Jupyter:

$ poetry run ipython kernel install --user --name=<KERNEL_NAME>
$ jupyter notebook

And then select the created kernel in “Kernel” -> “Change kernel”.

About

A complete example of creating a product recommender system. More specifically, using retail data to define, train, and serve a retrieval model using the TensorFlow Recommenders (TFRS) module.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published