Skip to content

Commit

Permalink
Merge pull request #3 from EthicallyAI/improved-wb
Browse files Browse the repository at this point in the history
Version 0.0.2 - Words embedding bias improvement
  • Loading branch information
Shlomi Hod authored Sep 1, 2018
2 parents abc2a69 + 20065c5 commit 1e1b7e0
Show file tree
Hide file tree
Showing 55 changed files with 33,791 additions and 1,282 deletions.
11 changes: 9 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# Created by https://www.gitignore.io/api/macos,linux,python,jupyternotebook
# Created by https://www.gitignore.io/api/macos,linux,python,jupyternotebook,visualstudiocode

### JupyterNotebook ###
.ipynb_checkpoints
Expand Down Expand Up @@ -172,5 +172,12 @@ venv.bak/
pyvenv.cfg
pip-selfcheck.json

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# End of https://www.gitignore.io/api/macos,linux,python,jupyternotebook

# End of https://www.gitignore.io/api/macos,linux,python,jupyternotebook,visualstudiocode
14 changes: 13 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
Revision History
================

0.0.2 (2018/09/01)
------------------

- Words embedding bias

- Generating analogies along the bias direction
- Standard evaluations of words embedding (word pairs and analogies)
- Plotting indirect bias
- Scatter plot of bias direction projections between two words embedding
- Improved verbose mode


0.0.1 (2018/08/17)
------------------

- Gender debiasing for words embedding based on Bolukbasi et al.
- Gender debiasing for words embedding based on Bolukbasi et al.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ graft */*/files
recursive-include ethically/we/data *.txt *.tsv *.json *.bin
recursive-include ethically/we/data/evaluation *.txt *.tsv *.json *.bin
recursive-include ethically/tests/data *.txt *.tsv *.json *.bin
recursive-include docs/notebooks/*/*.png
recursive-include docs/notebooks/* *.png
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ pycodestyle: install
pydocstyle: install
$(PYDOCSTYLE) $(PACKAGES) $(CONFIG)

.PHONY: rstlint
rstlint: install
rst-lint README.rst
rst-lint CHANGELOG.rst
rst-lint CONTRIBUTING.rst

# TESTS #######################################################################

PYTEST := pipenv run py.test
Expand Down Expand Up @@ -184,7 +190,7 @@ build: dist
dist: install $(DIST_FILES)
$(DIST_FILES): $(MODULES)
rm -f $(DIST_FILES)
pipenv run python setup.py check --strict --metadata
pipenv run python setup.py check --strict --metadata --restructuredtext
pipenv run python setup.py sdist
pipenv run python setup.py bdist_wheel

Expand All @@ -207,6 +213,13 @@ upload: dist ## Upload the current version to PyPI
$(TWINE) upload dist/*.*
bin/open https://pypi.org/project/$(PROJECT)

.PHONY: upload-test
upload-test: dist ## Upload the current version to Test PyPI
git diff --name-only --exit-code
$(TWINE) upload --repository-url https://test.pypi.org/legacy/ dist/*.*
bin/open https://test.pypi.org/project/$(PROJECT)


# CLEANUP #####################################################################

.PHONY: clean
Expand Down
3 changes: 3 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ isort = "*"
pylint = "*"
pycodestyle = "*"
pydocstyle = "*"
restructuredtext_lint = "*"

# Testing
pytest = "~= 3.3"
Expand All @@ -36,12 +37,14 @@ pygments = "*"
# Build
wheel = "*"
pyinstaller = "*"
readme_renderer = "*"

# Release
setuptools = ">= 38.6.0"
twine = ">= 1.11.0"

# Tooling
jupyter = "*"
sniffer = "*"
MacFSEvents = { version = "*", sys_platform = "== 'darwin'" }
pync = { version = "*", sys_platform = "== 'darwin'" }
Loading

0 comments on commit 1e1b7e0

Please sign in to comment.