Top-k recommender model
Fixes #622
Goals :soccer:
-
[x] Decouple the top-k local prediction top-k evaluation from the retrieval contrastive learning task.
-
[ ] REfactor retrieval models and add a method to convert to a top-k recommender model :
- [x] Two-Tower
- [ ] Matrix Factorization
- [ ] YoutubeDNN
-
[ ] Ensure the Keras analogy for the top-k recommender where the user can call
- [x] .predict, .
- [x] evaluate,
- [ ] .save, and load the model.
-
[ ] ItemRecommender should support different top-k strategies:
-
[ ] Ensure retrieval experiments and CI performance tests are returning same level of performance with the new Retrieval API
Implementation Details :construction:
Testing Details :mag:
Click to view CI Results
GitHub pull request #663 of commit 4f3e3d708f7bc2ecadbeb83c1620cdf72dab0324, no merge conflicts.
Running as SYSTEM
Setting status of 4f3e3d708f7bc2ecadbeb83c1620cdf72dab0324 to PENDING with url https://10.20.13.93:8080/job/merlin_models/1000/console and message: 'Pending'
Using context: Jenkins
Building on master in workspace /var/jenkins_home/workspace/merlin_models
using credential nvidia-merlin-bot
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/NVIDIA-Merlin/models/ # timeout=10
Fetching upstream changes from https://github.com/NVIDIA-Merlin/models/
> git --version # timeout=10
using GIT_ASKPASS to set credentials This is the bot credentials for our CI/CD
> git fetch --tags --force --progress -- https://github.com/NVIDIA-Merlin/models/ +refs/pull/663/*:refs/remotes/origin/pr/663/* # timeout=10
> git rev-parse 4f3e3d708f7bc2ecadbeb83c1620cdf72dab0324^{commit} # timeout=10
Checking out Revision 4f3e3d708f7bc2ecadbeb83c1620cdf72dab0324 (detached)
> git config core.sparsecheckout # timeout=10
> git checkout -f 4f3e3d708f7bc2ecadbeb83c1620cdf72dab0324 # timeout=10
Commit message: "first pass of top-k recommender"
> git rev-list --no-walk 69151044dbd8f9bd2e88ecd7fcf5abe5f7b65208 # timeout=10
[merlin_models] $ /bin/bash /tmp/jenkins6761334082408397487.sh
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Requirement already satisfied: testbook in /usr/local/lib/python3.8/dist-packages (0.4.2)
Requirement already satisfied: nbformat>=5.0.4 in /usr/local/lib/python3.8/dist-packages (from testbook) (5.4.0)
Requirement already satisfied: nbclient>=0.4.0 in /usr/local/lib/python3.8/dist-packages (from testbook) (0.6.6)
Requirement already satisfied: traitlets>=5.1 in /usr/local/lib/python3.8/dist-packages (from nbformat>=5.0.4->testbook) (5.3.0)
Requirement already satisfied: jsonschema>=2.6 in /usr/local/lib/python3.8/dist-packages (from nbformat>=5.0.4->testbook) (4.9.1)
Requirement already satisfied: jupyter-core in /usr/local/lib/python3.8/dist-packages (from nbformat>=5.0.4->testbook) (4.11.1)
Requirement already satisfied: fastjsonschema in /usr/local/lib/python3.8/dist-packages (from nbformat>=5.0.4->testbook) (2.16.1)
Requirement already satisfied: jupyter-client>=6.1.5 in /usr/local/lib/python3.8/dist-packages (from nbclient>=0.4.0->testbook) (7.3.4)
Requirement already satisfied: nest-asyncio in /usr/local/lib/python3.8/dist-packages (from nbclient>=0.4.0->testbook) (1.5.5)
Requirement already satisfied: attrs>=17.4.0 in /usr/local/lib/python3.8/dist-packages (from jsonschema>=2.6->nbformat>=5.0.4->testbook) (22.1.0)
Requirement already satisfied: importlib-resources>=1.4.0; python_version =2.6->nbformat>=5.0.4->testbook) (5.9.0)
Requirement already satisfied: pkgutil-resolve-name>=1.3.10; python_version =2.6->nbformat>=5.0.4->testbook) (1.3.10)
Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in /usr/local/lib/python3.8/dist-packages (from jsonschema>=2.6->nbformat>=5.0.4->testbook) (0.18.1)
Requirement already satisfied: entrypoints in /usr/local/lib/python3.8/dist-packages (from jupyter-client>=6.1.5->nbclient>=0.4.0->testbook) (0.4)
Requirement already satisfied: python-dateutil>=2.8.2 in /usr/local/lib/python3.8/dist-packages (from jupyter-client>=6.1.5->nbclient>=0.4.0->testbook) (2.8.2)
Requirement already satisfied: pyzmq>=23.0 in /usr/local/lib/python3.8/dist-packages (from jupyter-client>=6.1.5->nbclient>=0.4.0->testbook) (23.2.1)
Requirement already satisfied: tornado>=6.0 in /usr/local/lib/python3.8/dist-packages (from jupyter-client>=6.1.5->nbclient>=0.4.0->testbook) (6.2)
Requirement already satisfied: zipp>=3.1.0; python_version =1.4.0; python_version jsonschema>=2.6->nbformat>=5.0.4->testbook) (3.8.1)
Requirement already satisfied: six>=1.5 in /var/jenkins_home/.local/lib/python3.8/site-packages (from python-dateutil>=2.8.2->jupyter-client>=6.1.5->nbclient>=0.4.0->testbook) (1.15.0)
============================= test session starts ==============================
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0
rootdir: /var/jenkins_home/workspace/merlin_models/models, configfile: pyproject.toml
plugins: anyio-3.6.1, xdist-2.5.0, forked-1.4.0, cov-3.0.0
collected 189 items / 42 errors
==================================== ERRORS ====================================
_________________ ERROR collecting tests/unit/tf/test_core.py __________________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/test_core.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/test_core.py:4: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
________________ ERROR collecting tests/unit/tf/test_dataset.py ________________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/test_dataset.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/test_dataset.py:26: in
import merlin.models.tf as mm
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
______________ ERROR collecting tests/unit/tf/test_public_api.py _______________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/test_public_api.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/test_public_api.py:19: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
_____________ ERROR collecting tests/unit/tf/blocks/test_cross.py ______________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/blocks/test_cross.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/blocks/test_cross.py:20: in
import merlin.models.tf as mm
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
______________ ERROR collecting tests/unit/tf/blocks/test_dlrm.py ______________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/blocks/test_dlrm.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/blocks/test_dlrm.py:19: in
import merlin.models.tf as mm
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
__________ ERROR collecting tests/unit/tf/blocks/test_interactions.py __________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/blocks/test_interactions.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/blocks/test_interactions.py:19: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
______________ ERROR collecting tests/unit/tf/blocks/test_mlp.py _______________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/blocks/test_mlp.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/blocks/test_mlp.py:21: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
___________ ERROR collecting tests/unit/tf/blocks/test_optimizer.py ____________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/blocks/test_optimizer.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/blocks/test_optimizer.py:22: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
_________ ERROR collecting tests/unit/tf/blocks/retrieval/test_base.py _________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/blocks/retrieval/test_base.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/blocks/retrieval/test_base.py:18: in
from merlin.models.tf.blocks.retrieval.base import ItemRetrievalScorer
merlin/models/tf/blocks/retrieval/base.py:27: in
from merlin.models.tf.models.base import ModelBlock
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
E ImportError: cannot import name 'Model' from partially initialized module 'merlin.models.tf.models.base' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/models/base.py)
_ ERROR collecting tests/unit/tf/blocks/retrieval/test_matrix_factorization.py _
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/blocks/retrieval/test_matrix_factorization.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/blocks/retrieval/test_matrix_factorization.py:20: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
______ ERROR collecting tests/unit/tf/blocks/retrieval/test_two_tower.py _______
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/blocks/retrieval/test_two_tower.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/blocks/retrieval/test_two_tower.py:22: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
___________ ERROR collecting tests/unit/tf/core/test_aggregation.py ____________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/core/test_aggregation.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/core/test_aggregation.py:21: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
_______________ ERROR collecting tests/unit/tf/core/test_base.py _______________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/core/test_base.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/core/test_base.py:19: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
___________ ERROR collecting tests/unit/tf/core/test_combinators.py ____________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/core/test_combinators.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/core/test_combinators.py:6: in
import merlin.models.tf as mm
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
______________ ERROR collecting tests/unit/tf/core/test_index.py _______________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/core/test_index.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/core/test_index.py:19: in
import merlin.models.tf as mm
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
____________ ERROR collecting tests/unit/tf/core/test_prediction.py ____________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/core/test_prediction.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/core/test_prediction.py:7: in
import merlin.models.tf as mm
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
_____________ ERROR collecting tests/unit/tf/core/test_tabular.py ______________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/core/test_tabular.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/core/test_tabular.py:1: in
import merlin.models.tf as mm
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
_________ ERROR collecting tests/unit/tf/core/test_transformations.py __________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/core/test_transformations.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/core/test_transformations.py:23: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
________ ERROR collecting tests/unit/tf/data_augmentation/test_misc.py _________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/data_augmentation/test_misc.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/data_augmentation/test_misc.py:19: in
from merlin.models.tf.data_augmentation.misc import ContinuousPowers
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
__ ERROR collecting tests/unit/tf/data_augmentation/test_negative_sampling.py __
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/data_augmentation/test_negative_sampling.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/data_augmentation/test_negative_sampling.py:21: in
import merlin.models.tf as mm
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
________ ERROR collecting tests/unit/tf/data_augmentation/test_noise.py ________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/data_augmentation/test_noise.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/data_augmentation/test_noise.py:19: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
___________ ERROR collecting tests/unit/tf/inputs/test_continuous.py ___________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/inputs/test_continuous.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/inputs/test_continuous.py:19: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
___________ ERROR collecting tests/unit/tf/inputs/test_embedding.py ____________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/inputs/test_embedding.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/inputs/test_embedding.py:23: in
import merlin.models.tf as mm
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
____________ ERROR collecting tests/unit/tf/inputs/test_tabular.py _____________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/inputs/test_tabular.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/inputs/test_tabular.py:21: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
_____________ ERROR collecting tests/unit/tf/layers/test_queue.py ______________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/layers/test_queue.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/layers/test_queue.py:19: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
_____________ ERROR collecting tests/unit/tf/losses/test_losses.py _____________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/losses/test_losses.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/losses/test_losses.py:20: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
______________ ERROR collecting tests/unit/tf/models/test_base.py ______________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/models/test_base.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/models/test_base.py:22: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
___________ ERROR collecting tests/unit/tf/models/test_benchmark.py ____________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/models/test_benchmark.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/models/test_benchmark.py:19: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
____________ ERROR collecting tests/unit/tf/models/test_ranking.py _____________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/models/test_ranking.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/models/test_ranking.py:20: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
___________ ERROR collecting tests/unit/tf/models/test_retrieval.py ____________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/models/test_retrieval.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/models/test_retrieval.py:6: in
import merlin.models.tf as mm
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
____ ERROR collecting tests/unit/tf/prediction_tasks/test_classification.py ____
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/prediction_tasks/test_classification.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/prediction_tasks/test_classification.py:18: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
______ ERROR collecting tests/unit/tf/prediction_tasks/test_multi_task.py ______
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/prediction_tasks/test_multi_task.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/prediction_tasks/test_multi_task.py:6: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
______ ERROR collecting tests/unit/tf/prediction_tasks/test_next_item.py _______
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/prediction_tasks/test_next_item.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/prediction_tasks/test_next_item.py:20: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
______ ERROR collecting tests/unit/tf/prediction_tasks/test_regression.py ______
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/prediction_tasks/test_regression.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/prediction_tasks/test_regression.py:18: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
______ ERROR collecting tests/unit/tf/prediction_tasks/test_retrieval.py _______
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/prediction_tasks/test_retrieval.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/prediction_tasks/test_retrieval.py:19: in
from merlin.models.tf.prediction_tasks.retrieval import ItemRetrievalTask
merlin/models/tf/prediction_tasks/retrieval.py:21: in
from merlin.models.tf.blocks.retrieval.base import ItemRetrievalScorer
merlin/models/tf/blocks/retrieval/base.py:27: in
from merlin.models.tf.models.base import ModelBlock
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
E ImportError: cannot import name 'Model' from partially initialized module 'merlin.models.tf.models.base' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/models/base.py)
_______ ERROR collecting tests/unit/tf/prediction_tasks/test_sampling.py _______
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/prediction_tasks/test_sampling.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/prediction_tasks/test_sampling.py:20: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
___________ ERROR collecting tests/unit/tf/predictions/test_base.py ____________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/predictions/test_base.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/predictions/test_base.py:19: in
import merlin.models.tf as mm
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
______ ERROR collecting tests/unit/tf/predictions/test_classification.py _______
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/predictions/test_classification.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/predictions/test_classification.py:19: in
import merlin.models.tf as mm
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
________ ERROR collecting tests/unit/tf/predictions/test_dot_product.py ________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/predictions/test_dot_product.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/predictions/test_dot_product.py:4: in
import merlin.models.tf as mm
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
________ ERROR collecting tests/unit/tf/predictions/test_regression.py _________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/predictions/test_regression.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/predictions/test_regression.py:18: in
import merlin.models.tf as mm
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
E ImportError: cannot import name 'TFModelEncode' from partially initialized module 'merlin.models.tf.utils.batch_utils' (most likely due to a circular import) (/var/jenkins_home/workspace/merlin_models/models/merlin/models/tf/utils/batch_utils.py)
_________ ERROR collecting tests/unit/tf/predictions/test_sampling.py __________
ImportError while importing test module '/var/jenkins_home/workspace/merlin_models/models/tests/unit/tf/predictions/test_sampling.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/tf/predictions/test_sampling.py:20: in
import merlin.models.tf as ml
merlin/models/tf/init.py:21: in
from merlin.models.tf.core.index import IndexBlock, TopKIndexBlock
merlin/models/tf/core/index.py:26: in
from merlin.models.tf.utils.batch_utils import TFModelEncode
merlin/models/tf/utils/batch_utils.py:10: in
from merlin.models.tf.models.base import Model, RetrievalModel
merlin/models/tf/models/base.py:30: in
from merlin.models.tf.predictions.topk import TopKLayer, TopKPrediction
merlin/models/tf/predictions/topk.py:13: in