Skip to content

Commit

Permalink
Add HAP/detoxify module to Python TrustyAI (#197)
Browse files Browse the repository at this point in the history
* Add TMaRCo to detoxify module

* Revert changes to fairness/__init__.py

* Fix linting
  • Loading branch information
ruivieira authored Jan 22, 2024
1 parent 3cf3fa8 commit 8695afe
Show file tree
Hide file tree
Showing 4 changed files with 789 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ extras = [
"aix360[default,tsice,tslime,tssaliency]==0.3.0"
]

detoxify = [
"transformers~=4.36.2",
"datasets",
"scipy",
"torch",
"iter-tools",
"evaluate",
"trl"
]

[project.urls]
homepage = "https://github.com/trustyai-explainability/trustyai-explainability-python"
documentation = "https://trustyai-explainability-python.readthedocs.io/en/latest/"
Expand Down
Empty file.
2 changes: 2 additions & 0 deletions src/trustyai/language/detoxify/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"""Language detoxification module."""
from trustyai.language.detoxify.tmarco import TMaRCo
Loading

0 comments on commit 8695afe

Please sign in to comment.