https://github.com/iht/sample-tfx-pipeline
A sample TFX pipeline intended to run in local
https://github.com/iht/sample-tfx-pipeline
Last synced: 9 months ago
JSON representation
A sample TFX pipeline intended to run in local
- Host: GitHub
- URL: https://github.com/iht/sample-tfx-pipeline
- Owner: iht
- License: apache-2.0
- Created: 2023-02-24T21:10:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-24T21:11:00.000Z (over 3 years ago)
- Last Synced: 2024-04-18T00:13:56.630Z (about 2 years ago)
- Language: Python
- Size: 354 KB
- Stars: 1
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ML Ops with TFX
## Setup
For this project, you will need Python 3.7, 3.8 or 3.9, with a virtualenv with
the dependencies included in the file `requirements.txt`.
Find instructions below to install the dependencies:
Please don't use Python < 3.7 (e.g. 3.6) or Python > 3.9 (e.g. 3.10), they will
not work with TFX. For more details, please check:
* https://www.tensorflow.org/tfx
* https://github.com/tensorflow/tfx
At the moment of writing this, the Cloud Shell has Python 3.9. You can check your
Python version by running the following command:
```shell
python --version
```
Once you have made sure you have the correct Python version, create a virtualenv:
```shell
python -m venv tfxenv
```
Activate it:
```shell
source ./tfxenv/bin/activate
```
And install the dependencies in the file `requirements.txt`, by running:
```shell
pip install -r requirements.txt
```
## Running the pipeline
Edit the scripts in the directory `scripts` just in case you want to adapt any of
the default options.
The `playground` branch of this repository contains incomplete code that you need to
finish, as an exercise to learn the ropes of TFX pipelines.
To run the pipeline, run this script:
```shell
./scripts/launch_local.sh
```