-
Notifications
You must be signed in to change notification settings - Fork 900
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # requirements.txt # setup.py # tutorials/wikiqa/dssm.ipynb
- Loading branch information
Showing
85 changed files
with
5,367 additions
and
274 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 @@ | ||
tutorials/* linguist-vendored |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,70 @@ | ||
# Usages: | ||
# | ||
# to install matchzoo dependencies: | ||
# $ make init | ||
# | ||
# to run all matchzoo tests, recommended for big PRs and new versions: | ||
# $ make test | ||
# | ||
# there are three kinds of tests: | ||
# | ||
# 1. "quick" tests | ||
# - run in seconds | ||
# - include all unit tests without marks and all doctests | ||
# - for rapid prototyping | ||
# - CI run this for all PRs | ||
# | ||
# 2. "slow" tests | ||
# - run in minutes | ||
# - include all unit tests marked "slow" | ||
# - CI run this for all PRs | ||
# | ||
# 3. "cron" tests | ||
# - run in minutes | ||
# - involves underministic behavoirs (e.g. network connection) | ||
# - include all unit tests marked "cron" | ||
# - CI run this on a daily basis | ||
# | ||
# to run quick tests, excluding time consuming tests and crons: | ||
# $ make quick | ||
# | ||
# to run slow tests, excluding normal tests and crons: | ||
# $ make slow | ||
# | ||
# to run crons: | ||
# $ make cron | ||
# | ||
# to run all tests: | ||
# $ make test | ||
# | ||
# to run CI push/PR tests: | ||
# $ make push | ||
# | ||
# to run docstring style check: | ||
# $ make flake | ||
|
||
init: | ||
pip install -r requirements.txt | ||
|
||
TEST_ARGS = --doctest-modules --doctest-continue-on-failure --cov matchzoo/ --cov-report term-missing --cov-report html --cov-config .coveragerc matchzoo/ tests/ -W ignore::DeprecationWarning | ||
TEST_ARGS = -v --full-trace -l --doctest-modules --doctest-continue-on-failure --cov matchzoo/ --cov-report term-missing --cov-report html --cov-config .coveragerc matchzoo/ tests/ -W ignore::DeprecationWarning --ignore=matchzoo/contrib | ||
FLAKE_ARGS = ./matchzoo --exclude=__init__.py,matchzoo/contrib | ||
|
||
test: | ||
pytest $(TEST_ARGS) | ||
flake8 $(FLAKE_ARGS) | ||
|
||
push: | ||
pytest -m 'not cron' $(TEST_ARGS) ${ARGS} | ||
flake8 $(FLAKE_ARGS) | ||
|
||
quick: | ||
pytest -m 'not slow' $(TEST_ARGS) | ||
pytest -m 'not slow and not cron' $(TEST_ARGS) ${ARGS} | ||
|
||
slow: | ||
pytest -m 'slow' $(TEST_ARGS) | ||
pytest -m 'slow and not cron' $(TEST_ARGS) ${ARGS} | ||
|
||
cron: | ||
pytest -m 'cron' $(TEST_ARGS) ${ARGS} | ||
|
||
flake: | ||
flake8 $(FLAKE_ARGS) | ||
flake8 $(FLAKE_ARGS) ${ARGS} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
matchzoo.auto.preparer package | ||
============================== | ||
|
||
Submodules | ||
---------- | ||
|
||
matchzoo.auto.preparer.prepare module | ||
------------------------------------- | ||
|
||
.. automodule:: matchzoo.auto.preparer.prepare | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
matchzoo.auto.preparer.preparer module | ||
-------------------------------------- | ||
|
||
.. automodule:: matchzoo.auto.preparer.preparer | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: matchzoo.auto.preparer | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
matchzoo.auto.tuner.callbacks package | ||
===================================== | ||
|
||
Submodules | ||
---------- | ||
|
||
matchzoo.auto.tuner.callbacks.callback module | ||
--------------------------------------------- | ||
|
||
.. automodule:: matchzoo.auto.tuner.callbacks.callback | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
matchzoo.auto.tuner.callbacks.lambda\_callback module | ||
----------------------------------------------------- | ||
|
||
.. automodule:: matchzoo.auto.tuner.callbacks.lambda_callback | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
matchzoo.auto.tuner.callbacks.load\_embedding\_matrix module | ||
------------------------------------------------------------ | ||
|
||
.. automodule:: matchzoo.auto.tuner.callbacks.load_embedding_matrix | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
matchzoo.auto.tuner.callbacks.save\_model module | ||
------------------------------------------------ | ||
|
||
.. automodule:: matchzoo.auto.tuner.callbacks.save_model | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: matchzoo.auto.tuner.callbacks | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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,37 @@ | ||
matchzoo.auto.tuner package | ||
=========================== | ||
|
||
Subpackages | ||
----------- | ||
|
||
.. toctree:: | ||
|
||
matchzoo.auto.tuner.callbacks | ||
|
||
Submodules | ||
---------- | ||
|
||
matchzoo.auto.tuner.tune module | ||
------------------------------- | ||
|
||
.. automodule:: matchzoo.auto.tuner.tune | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
matchzoo.auto.tuner.tuner module | ||
-------------------------------- | ||
|
||
.. automodule:: matchzoo.auto.tuner.tuner | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: matchzoo.auto.tuner | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
Oops, something went wrong.