This repository has been archived by the owner on Jan 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SmartText, HTMLRemover, related tests, and devops upgrades (#45)
* Fix pytest.ini file * Update poetry.lock and pyproject.toml to include lxml * Modified wrapper to accept sklearn vectorizers * Add SmartText transformer * Add a HTMLRemover transformer * Add a ToString transformer * Convert .ix to .iloc to address deprecation warnings * Increase speed of param_optimize test * Abstract column summary so that TextIntent and categorical intent can share it * Add wrapper ability to handle sparse array output * Temporarily suppress internal sklearn --> scipy warnings
- Loading branch information
1 parent
0abb2bc
commit bb35c7a
Showing
19 changed files
with
427 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[flake8] | ||
exclude = .git,__pycache__ | ||
per-file-ignores = | ||
foreshadow/transformers/externals.py:F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,34 @@ | ||
language: python | ||
|
||
cache: | ||
pip: true | ||
directories: | ||
- "$HOME/.cache/pypoetry" | ||
- "$HOME/.cache/pre-commit" | ||
|
||
stages: | ||
- linting | ||
- test | ||
|
||
before_install: | ||
# linux | ||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt update; fi | ||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt install swig3.0; fi | ||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ln -s /usr/bin/swig3.0 /usr/bin/swig; fi | ||
- pip install poetry | ||
install: | ||
- poetry install -v -E dev | ||
script: | ||
- poetry run tox | ||
after_success: | ||
- poetry run coveralls | ||
|
||
env: | ||
- FORESHADOW_TESTS="ALL" | ||
|
||
jobs: | ||
include: | ||
- python: "3.6" | ||
|
||
- stage: linting | ||
python: "3.6" | ||
install: | ||
- pip install pre-commit | ||
- pre-commit install-hooks | ||
script: | ||
- pre-commit run --all-files | ||
- stage: test | ||
python: "3.6" | ||
env: | ||
- FORESHADOW_TESTS="ALL" | ||
before_install: | ||
# linux | ||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt update; fi | ||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt install swig3.0; fi | ||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ln -s /usr/bin/swig3.0 /usr/bin/swig; fi | ||
- pip install poetry | ||
install: | ||
- poetry install -v -E dev | ||
script: | ||
- poetry run tox | ||
after_success: | ||
- poetry run coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.