Install Model Remediation
Stay organized with collections
Save and categorize content based on your preferences.
You have a few options to download and start using TensorFlow Model Remediation:
- To start learning what the library contains and how it works, run a
tutorial for the technique that you're interested in. See the
Intervening on the model
section for the list of techniques and links to tutorials.
- To download on a local machine, install the
tensorflow-model-remediation
pip package.
- If your machine has a unique configuration, you can build your package from
source.
Installing the pip package
To install the pip package run the following command:
$ pip install --upgrade tensorflow-model-remediation
This package requires TensorFlow 2.0 or higher.
Installing from source
First, clone the github repo:
$ git clone https://github.com/tensorflow/model-remediation.git
Build the pip package from source (after any modifications if necessary):
$ python3 setup.py sdist bdist_wheel
Finally, install your locally built package:
$ pip install --upgrade dist/tensorflow_model_remediation-*.whl
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-05-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-05-11 UTC."],[],[],null,["# Install Model Remediation\n\nYou have a few options to download and start using TensorFlow Model Remediation:\n\n- To start learning what the library contains and how it works, run a tutorial for the technique that you're interested in. See the [Intervening on the model](/responsible_ai/model_remediation#intervening_on_the_model) section for the list of techniques and links to tutorials.\n- To download on a local machine, install the [`tensorflow-model-remediation`](https://pypi.org/project/tensorflow-model-remediation/) pip package.\n- If your machine has a unique configuration, you can build your package from [source](https://github.com/tensorflow/model-remediation).\n\nInstalling the pip package\n--------------------------\n\nTo install the pip package run the following command: \n\n $ pip install --upgrade tensorflow-model-remediation\n\nThis package requires TensorFlow 2.0 or higher.\n\nInstalling from source\n----------------------\n\nFirst, clone the github repo: \n\n $ git clone https://github.com/tensorflow/model-remediation.git\n\nBuild the pip package from source (after any modifications if necessary): \n\n $ python3 setup.py sdist bdist_wheel\n\nFinally, install your locally built package: \n\n $ pip install --upgrade dist/tensorflow_model_remediation-*.whl"]]