nextrec 0.4.27__tar.gz → 0.4.29__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nextrec-0.4.27 → nextrec-0.4.29}/PKG-INFO +4 -4
- {nextrec-0.4.27 → nextrec-0.4.29}/README.md +3 -3
- {nextrec-0.4.27 → nextrec-0.4.29}/README_en.md +3 -3
- {nextrec-0.4.27 → nextrec-0.4.29}/docs/rtd/conf.py +1 -1
- nextrec-0.4.29/nextrec/__version__.py +1 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/basic/loggers.py +1 -1
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/data/batch_utils.py +23 -3
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/data/dataloader.py +3 -8
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/multi_task/pepnet.py +13 -10
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/NextRec-CLI.md +2 -2
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/NextRec-CLI_zh.md +2 -2
- {nextrec-0.4.27 → nextrec-0.4.29}/pyproject.toml +1 -1
- nextrec-0.4.27/nextrec/__version__.py +0 -1
- {nextrec-0.4.27 → nextrec-0.4.29}/.github/workflows/publish.yml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/.github/workflows/tests.yml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/.gitignore +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/.readthedocs.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/CODE_OF_CONDUCT.md +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/CONTRIBUTING.md +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/LICENSE +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/MANIFEST.in +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/assets/Feature Configuration.png +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/assets/Model Parameters.png +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/assets/Training Configuration.png +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/assets/Training logs.png +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/assets/logo.png +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/assets/mmoe_tutorial.png +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/assets/nextrec_diagram.png +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/assets/test data.png +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/dataset/ctcvr_task.csv +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/dataset/ecommerce_task.csv +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/dataset/match_task.csv +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/dataset/movielens_100k.csv +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/dataset/multitask_task.csv +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/dataset/ranking_task.csv +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/docs/en/Getting started guide.md +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/docs/rtd/Makefile +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/docs/rtd/index.md +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/docs/rtd/make.bat +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/docs/rtd/modules.rst +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/docs/rtd/nextrec.basic.rst +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/docs/rtd/nextrec.data.rst +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/docs/rtd/nextrec.loss.rst +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/docs/rtd/nextrec.rst +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/docs/rtd/nextrec.utils.rst +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/docs/rtd/requirements.txt +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/docs/zh//345/277/253/351/200/237/344/270/212/346/211/213.md" +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/__init__.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/basic/__init__.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/basic/activation.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/basic/asserts.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/basic/callback.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/basic/features.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/basic/heads.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/basic/layers.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/basic/metrics.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/basic/model.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/basic/session.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/basic/summary.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/cli.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/data/__init__.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/data/data_processing.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/data/data_utils.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/data/preprocessor.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/loss/__init__.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/loss/grad_norm.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/loss/listwise.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/loss/pairwise.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/loss/pointwise.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/generative/__init__.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/generative/tiger.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/multi_task/[pre]aitm.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/multi_task/[pre]snr_trans.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/multi_task/[pre]star.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/multi_task/__init__.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/multi_task/apg.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/multi_task/cross_stitch.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/multi_task/escm.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/multi_task/esmm.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/multi_task/hmoe.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/multi_task/mmoe.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/multi_task/ple.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/multi_task/poso.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/multi_task/share_bottom.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/ranking/__init__.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/ranking/afm.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/ranking/autoint.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/ranking/dcn.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/ranking/dcn_v2.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/ranking/deepfm.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/ranking/dien.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/ranking/din.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/ranking/eulernet.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/ranking/ffm.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/ranking/fibinet.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/ranking/fm.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/ranking/lr.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/ranking/masknet.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/ranking/pnn.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/ranking/widedeep.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/ranking/xdeepfm.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/representation/__init__.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/representation/autorec.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/representation/bpr.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/representation/cl4srec.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/representation/lightgcn.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/representation/mf.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/representation/rqvae.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/representation/s3rec.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/retrieval/__init__.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/retrieval/dssm.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/retrieval/dssm_v2.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/retrieval/mind.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/retrieval/sdm.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/retrieval/youtube_dnn.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/sequential/hstu.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/models/sequential/sasrec.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/utils/__init__.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/utils/config.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/utils/console.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/utils/data.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/utils/embedding.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/utils/feature.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/utils/loss.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/utils/model.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/utils/torch_utils.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec/utils/types.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/feature_config.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/model_configs/afm.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/model_configs/apg.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/model_configs/autoint.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/model_configs/cross_stitch.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/model_configs/dcn.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/model_configs/deepfm.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/model_configs/din.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/model_configs/escm.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/model_configs/esmm.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/model_configs/fibinet.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/model_configs/fm.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/model_configs/hmoe.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/model_configs/masknet.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/model_configs/mmoe.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/model_configs/pepnet.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/model_configs/ple.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/model_configs/pnn.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/model_configs/poso.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/model_configs/share_bottom.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/model_configs/widedeep.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/model_configs/xdeepfm.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/predict_config.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/predict_config_template.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/train_config.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/nextrec_cli_preset/train_config_template.yaml +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/pytest.ini +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/requirements.txt +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/scripts/format_code.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/test/__init__.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/test/conftest.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/test/helpers.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/test/run_tests.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/test/test_base_model_regularization.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/test/test_generative_models.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/test/test_layers.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/test/test_losses.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/test/test_match_models.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/test/test_multitask_models.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/test/test_preprocessor.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/test/test_ranking_models.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/test/test_utils_console.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/test/test_utils_data.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/test/test_utils_embedding.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/test_requirements.txt +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/tutorials/distributed/example_distributed_training.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/tutorials/distributed/example_distributed_training_large_dataset.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/tutorials/example_match.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/tutorials/example_multitask.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/tutorials/example_ranking_din.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/tutorials/movielen_match_dssm.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/tutorials/movielen_ranking_deepfm.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/tutorials/notebooks/en/Build semantic ID with RQ-VAE.ipynb +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/tutorials/notebooks/en/Hands on dataprocessor.ipynb +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/tutorials/notebooks/en/Hands on nextrec.ipynb +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/tutorials/notebooks/zh//344/275/277/347/224/250RQ-VAE/346/236/204/345/273/272/350/257/255/344/271/211ID.ipynb" +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/tutorials/notebooks/zh//345/246/202/344/275/225/344/275/277/347/224/250DataProcessor/350/277/233/350/241/214/351/242/204/345/244/204/347/220/206.ipynb" +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/tutorials/notebooks/zh//345/277/253/351/200/237/345/205/245/351/227/250nextrec.ipynb" +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/tutorials/run_all_match_models.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/tutorials/run_all_multitask_models.py +0 -0
- {nextrec-0.4.27 → nextrec-0.4.29}/tutorials/run_all_ranking_models.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nextrec
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.29
|
|
4
4
|
Summary: A comprehensive recommendation library with match, ranking, and multi-task learning models
|
|
5
5
|
Project-URL: Homepage, https://github.com/zerolovesea/NextRec
|
|
6
6
|
Project-URL: Repository, https://github.com/zerolovesea/NextRec
|
|
@@ -69,7 +69,7 @@ Description-Content-Type: text/markdown
|
|
|
69
69
|

|
|
70
70
|

|
|
71
71
|

|
|
72
|
-

|
|
73
73
|
[](https://deepwiki.com/zerolovesea/NextRec)
|
|
74
74
|
|
|
75
75
|
中文文档 | [English Version](README_en.md)
|
|
@@ -254,11 +254,11 @@ nextrec --mode=predict --predict_config=path/to/predict_config.yaml
|
|
|
254
254
|
|
|
255
255
|
预测结果固定保存到 `{checkpoint_path}/predictions/{name}.{save_data_format}`。
|
|
256
256
|
|
|
257
|
-
> 截止当前版本0.4.
|
|
257
|
+
> 截止当前版本0.4.29,NextRec CLI支持单机训练,分布式训练相关功能尚在开发中。
|
|
258
258
|
|
|
259
259
|
## 兼容平台
|
|
260
260
|
|
|
261
|
-
当前最新版本为0.4.
|
|
261
|
+
当前最新版本为0.4.29,所有模型和测试代码均已在以下平台通过验证,如果开发者在使用中遇到兼容问题,请在issue区提出错误报告及系统版本:
|
|
262
262
|
|
|
263
263
|
| 平台 | 配置 |
|
|
264
264
|
|------|------|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|

|
|
9
9
|

|
|
10
10
|

|
|
11
|
-

|
|
12
12
|
[](https://deepwiki.com/zerolovesea/NextRec)
|
|
13
13
|
|
|
14
14
|
中文文档 | [English Version](README_en.md)
|
|
@@ -193,11 +193,11 @@ nextrec --mode=predict --predict_config=path/to/predict_config.yaml
|
|
|
193
193
|
|
|
194
194
|
预测结果固定保存到 `{checkpoint_path}/predictions/{name}.{save_data_format}`。
|
|
195
195
|
|
|
196
|
-
> 截止当前版本0.4.
|
|
196
|
+
> 截止当前版本0.4.29,NextRec CLI支持单机训练,分布式训练相关功能尚在开发中。
|
|
197
197
|
|
|
198
198
|
## 兼容平台
|
|
199
199
|
|
|
200
|
-
当前最新版本为0.4.
|
|
200
|
+
当前最新版本为0.4.29,所有模型和测试代码均已在以下平台通过验证,如果开发者在使用中遇到兼容问题,请在issue区提出错误报告及系统版本:
|
|
201
201
|
|
|
202
202
|
| 平台 | 配置 |
|
|
203
203
|
|------|------|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|

|
|
9
9
|

|
|
10
10
|

|
|
11
|
-

|
|
12
12
|
[](https://deepwiki.com/zerolovesea/NextRec)
|
|
13
13
|
|
|
14
14
|
English | [中文文档](README.md)
|
|
@@ -196,11 +196,11 @@ nextrec --mode=predict --predict_config=path/to/predict_config.yaml
|
|
|
196
196
|
|
|
197
197
|
Prediction outputs are saved under `{checkpoint_path}/predictions/{name}.{save_data_format}`.
|
|
198
198
|
|
|
199
|
-
> As of version 0.4.
|
|
199
|
+
> As of version 0.4.29, NextRec CLI supports single-machine training; distributed training features are currently under development.
|
|
200
200
|
|
|
201
201
|
## Platform Compatibility
|
|
202
202
|
|
|
203
|
-
The current version is 0.4.
|
|
203
|
+
The current version is 0.4.29. All models and test code have been validated on the following platforms. If you encounter compatibility issues, please report them in the issue tracker with your system version:
|
|
204
204
|
|
|
205
205
|
| Platform | Configuration |
|
|
206
206
|
|----------|---------------|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.4.29"
|
|
@@ -111,7 +111,7 @@ def setup_logger(session_id: str | os.PathLike | None = None):
|
|
|
111
111
|
session = create_session(str(session_id) if session_id is not None else None)
|
|
112
112
|
log_dir = session.logs_dir
|
|
113
113
|
log_dir.mkdir(parents=True, exist_ok=True)
|
|
114
|
-
log_file = log_dir / "
|
|
114
|
+
log_file = log_dir / "runs_log.txt"
|
|
115
115
|
|
|
116
116
|
console_format = "%(message)s"
|
|
117
117
|
file_format = "%(asctime)s - %(levelname)s - %(message)s"
|
|
@@ -5,13 +5,27 @@ Date: create on 03/12/2025
|
|
|
5
5
|
Author: Yang Zhou, zyaztec@gmail.com
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
|
-
from typing import Any, Mapping
|
|
8
|
+
from typing import Any, Mapping, Literal
|
|
9
9
|
|
|
10
10
|
import numpy as np
|
|
11
11
|
import torch
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
def stack_section(batch: list[dict], section:
|
|
14
|
+
def stack_section(batch: list[dict], section: Literal["features", "labels", "ids"]):
|
|
15
|
+
"""
|
|
16
|
+
input example:
|
|
17
|
+
batch = [
|
|
18
|
+
{"features": {"f1": tensor1, "f2": tensor2}, "labels": {"label": tensor3}},
|
|
19
|
+
{"features": {"f1": tensor4, "f2": tensor5}, "labels": {"label": tensor6}},
|
|
20
|
+
...
|
|
21
|
+
]
|
|
22
|
+
output example:
|
|
23
|
+
{
|
|
24
|
+
"f1": torch.stack([tensor1, tensor4], dim=0),
|
|
25
|
+
"f2": torch.stack([tensor2, tensor5], dim=0),
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
"""
|
|
15
29
|
entries = [item.get(section) for item in batch if item.get(section) is not None]
|
|
16
30
|
if not entries:
|
|
17
31
|
return None
|
|
@@ -22,7 +36,13 @@ def stack_section(batch: list[dict], section: str):
|
|
|
22
36
|
for item in batch
|
|
23
37
|
if item.get(section) is not None and name in item[section]
|
|
24
38
|
]
|
|
25
|
-
|
|
39
|
+
tensor_sample = tensors[0]
|
|
40
|
+
if isinstance(tensor_sample, torch.Tensor):
|
|
41
|
+
merged[name] = torch.stack(tensors, dim=0)
|
|
42
|
+
elif isinstance(tensor_sample, np.ndarray):
|
|
43
|
+
merged[name] = np.stack(tensors, axis=0)
|
|
44
|
+
else:
|
|
45
|
+
merged[name] = tensors
|
|
26
46
|
return merged
|
|
27
47
|
|
|
28
48
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Dataloader definitions
|
|
3
3
|
|
|
4
4
|
Date: create on 27/10/2025
|
|
5
|
-
Checkpoint: edit on
|
|
5
|
+
Checkpoint: edit on 01/01/2026
|
|
6
6
|
Author: Yang Zhou,zyaztec@gmail.com
|
|
7
7
|
"""
|
|
8
8
|
|
|
@@ -523,13 +523,8 @@ def build_tensors_from_data(
|
|
|
523
523
|
raise KeyError(
|
|
524
524
|
f"[RecDataLoader Error] ID column '{id_col}' not found in provided data."
|
|
525
525
|
)
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
except Exception as exc:
|
|
529
|
-
raise TypeError(
|
|
530
|
-
f"[RecDataLoader Error] ID column '{id_col}' must contain numeric values. Received dtype={np.asarray(column).dtype}, error: {exc}"
|
|
531
|
-
) from exc
|
|
532
|
-
id_tensors[id_col] = to_tensor(id_arr, dtype=torch.long)
|
|
526
|
+
# Normalize all id columns to strings for consistent downstream handling.
|
|
527
|
+
id_tensors[id_col] = np.asarray(column, dtype=str)
|
|
533
528
|
if not feature_tensors:
|
|
534
529
|
return None
|
|
535
530
|
return {"features": feature_tensors, "labels": label_tensors, "ids": id_tensors}
|
|
@@ -61,9 +61,9 @@ from nextrec.utils.model import select_features
|
|
|
61
61
|
from nextrec.utils.types import TaskTypeName
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
class
|
|
64
|
+
class PPNet(nn.Module):
|
|
65
65
|
"""
|
|
66
|
-
|
|
66
|
+
PPNet: per-task tower with layer-wise gates conditioned on task context.
|
|
67
67
|
"""
|
|
68
68
|
|
|
69
69
|
def __init__(
|
|
@@ -274,18 +274,21 @@ class PEPNet(BaseModel):
|
|
|
274
274
|
)
|
|
275
275
|
task_dim = domain_dim + user_dim + item_dim
|
|
276
276
|
|
|
277
|
-
|
|
277
|
+
# EPNet: shared feature-level gate (paper's EPNet).
|
|
278
|
+
self.epnet = GateMLP(
|
|
278
279
|
input_dim=input_dim + domain_dim,
|
|
279
280
|
hidden_dim=feature_gate_mlp_params["hidden_dim"],
|
|
280
281
|
output_dim=input_dim,
|
|
281
282
|
activation=feature_gate_mlp_params["activation"],
|
|
282
283
|
dropout=feature_gate_mlp_params["dropout"],
|
|
283
284
|
use_bn=feature_gate_mlp_params["use_bn"],
|
|
285
|
+
scale_factor=2.0,
|
|
284
286
|
)
|
|
285
287
|
|
|
286
|
-
|
|
288
|
+
# PPNet: per-task gated towers (paper's PPNet).
|
|
289
|
+
self.ppnet_blocks = nn.ModuleList(
|
|
287
290
|
[
|
|
288
|
-
|
|
291
|
+
PPNet(
|
|
289
292
|
input_dim=input_dim,
|
|
290
293
|
output_dim=1,
|
|
291
294
|
gate_input_dim=input_dim + task_dim,
|
|
@@ -300,9 +303,9 @@ class PEPNet(BaseModel):
|
|
|
300
303
|
self.prediction_layer = TaskHead(
|
|
301
304
|
task_type=self.task, task_dims=[1] * self.nums_task
|
|
302
305
|
)
|
|
303
|
-
self.grad_norm_shared_modules = ["embedding", "
|
|
306
|
+
self.grad_norm_shared_modules = ["embedding", "epnet"]
|
|
304
307
|
self.register_regularization_weights(
|
|
305
|
-
embedding_attr="embedding", include_modules=["
|
|
308
|
+
embedding_attr="embedding", include_modules=["epnet", "ppnet_blocks"]
|
|
306
309
|
)
|
|
307
310
|
|
|
308
311
|
def forward(self, x: dict[str, torch.Tensor]) -> torch.Tensor:
|
|
@@ -327,11 +330,11 @@ class PEPNet(BaseModel):
|
|
|
327
330
|
task_sf_emb = torch.cat(task_parts, dim=-1)
|
|
328
331
|
|
|
329
332
|
gate_input = torch.cat([dnn_input.detach(), domain_emb], dim=-1)
|
|
330
|
-
dnn_input = self.
|
|
333
|
+
dnn_input = self.epnet(gate_input) * dnn_input
|
|
331
334
|
|
|
332
335
|
task_logits = []
|
|
333
|
-
for block in self.
|
|
334
|
-
|
|
336
|
+
for block in self.ppnet_blocks:
|
|
337
|
+
task_logits.append(block(o_ep=dnn_input, o_prior=task_sf_emb))
|
|
335
338
|
|
|
336
339
|
y = torch.cat(task_logits, dim=1)
|
|
337
340
|
return self.prediction_layer(y)
|
|
@@ -820,7 +820,7 @@ nextrec_logs/
|
|
|
820
820
|
├── features_config.pkl # Feature configuration
|
|
821
821
|
├── model_epoch_1.pt # Model checkpoint
|
|
822
822
|
├── model_epoch_2.pt
|
|
823
|
-
└──
|
|
823
|
+
└── runs_log.txt # Training log
|
|
824
824
|
```
|
|
825
825
|
|
|
826
826
|
### Q3: How to resume training?
|
|
@@ -829,7 +829,7 @@ The current CLI doesn't support resuming training. Please use the Python API.
|
|
|
829
829
|
|
|
830
830
|
### Q4: How to view training logs?
|
|
831
831
|
|
|
832
|
-
Logs are saved in `{artifact_root}/{session_id}/
|
|
832
|
+
Logs are saved in `{artifact_root}/{session_id}/runs_log.txt` and also output to terminal.
|
|
833
833
|
|
|
834
834
|
### Q5: Does it support distributed training?
|
|
835
835
|
|
|
@@ -820,7 +820,7 @@ nextrec_logs/
|
|
|
820
820
|
├── features_config.pkl # 特征配置
|
|
821
821
|
├── model_epoch_1.pt # 模型检查点
|
|
822
822
|
├── model_epoch_2.pt
|
|
823
|
-
└──
|
|
823
|
+
└── runs_log.txt # 训练日志
|
|
824
824
|
```
|
|
825
825
|
|
|
826
826
|
### Q3: 如何恢复训练?
|
|
@@ -829,7 +829,7 @@ nextrec_logs/
|
|
|
829
829
|
|
|
830
830
|
### Q4: 如何查看训练日志?
|
|
831
831
|
|
|
832
|
-
日志保存在 `{artifact_root}/{session_id}/
|
|
832
|
+
日志保存在 `{artifact_root}/{session_id}/runs_log.txt`,也会输出到终端。
|
|
833
833
|
|
|
834
834
|
### Q5: 支持分布式训练吗?
|
|
835
835
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.4.27"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nextrec-0.4.27 → nextrec-0.4.29}/docs/zh//345/277/253/351/200/237/344/270/212/346/211/213.md"
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nextrec-0.4.27 → nextrec-0.4.29}/tutorials/notebooks/en/Build semantic ID with RQ-VAE.ipynb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|