nextrec 0.1.8__py3-none-any.whl → 0.1.11__py3-none-any.whl
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/__version__.py +1 -1
- nextrec/basic/model.py +5 -4
- {nextrec-0.1.8.dist-info → nextrec-0.1.11.dist-info}/METADATA +13 -9
- {nextrec-0.1.8.dist-info → nextrec-0.1.11.dist-info}/RECORD +6 -6
- {nextrec-0.1.8.dist-info → nextrec-0.1.11.dist-info}/WHEEL +0 -0
- {nextrec-0.1.8.dist-info → nextrec-0.1.11.dist-info}/licenses/LICENSE +0 -0
nextrec/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.1.
|
|
1
|
+
__version__ = "0.1.11"
|
nextrec/basic/model.py
CHANGED
|
@@ -50,6 +50,7 @@ class BaseModel(nn.Module):
|
|
|
50
50
|
embedding_l2_reg: float = 0.0,
|
|
51
51
|
dense_l2_reg: float = 0.0,
|
|
52
52
|
early_stop_patience: int = 20,
|
|
53
|
+
model_path: str = './',
|
|
53
54
|
model_id: str = 'baseline'):
|
|
54
55
|
|
|
55
56
|
super(BaseModel, self).__init__()
|
|
@@ -85,12 +86,12 @@ class BaseModel(nn.Module):
|
|
|
85
86
|
self.early_stop_patience = early_stop_patience
|
|
86
87
|
self._max_gradient_norm = 1.0 # Maximum gradient norm for gradient clipping
|
|
87
88
|
|
|
88
|
-
project_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
89
89
|
self.model_id = model_id
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
|
|
91
|
+
model_path = os.path.abspath(os.getcwd() if model_path in [None, './'] else model_path)
|
|
92
|
+
checkpoint_dir = os.path.join(model_path, "checkpoints", self.model_id)
|
|
92
93
|
os.makedirs(checkpoint_dir, exist_ok=True)
|
|
93
|
-
self.checkpoint = os.path.join(checkpoint_dir, f"{self.model_name}_{
|
|
94
|
+
self.checkpoint = os.path.join(checkpoint_dir, f"{self.model_name}_{datetime.datetime.now().strftime('%Y%m%d_%H%M%S')}.model")
|
|
94
95
|
self.best = os.path.join(checkpoint_dir, f"{self.model_name}_{self.model_id}_best.model")
|
|
95
96
|
|
|
96
97
|
self._logger_initialized = False
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nextrec
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.11
|
|
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
|
|
@@ -19,21 +19,26 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.12
|
|
20
20
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
21
21
|
Requires-Python: >=3.10
|
|
22
|
-
Requires-Dist: numpy<2.0,>=1.21; sys_platform == 'linux'
|
|
22
|
+
Requires-Dist: numpy<2.0,>=1.21; sys_platform == 'linux' and python_version < '3.12'
|
|
23
|
+
Requires-Dist: numpy<3.0,>=1.26; sys_platform == 'linux' and python_version >= '3.12'
|
|
23
24
|
Requires-Dist: numpy>=1.23.0; sys_platform == 'win32'
|
|
24
25
|
Requires-Dist: numpy>=1.24.0; sys_platform == 'darwin'
|
|
25
|
-
Requires-Dist: pandas<2.0,>=1.5; sys_platform == 'linux'
|
|
26
|
+
Requires-Dist: pandas<2.0,>=1.5; sys_platform == 'linux' and python_version < '3.12'
|
|
26
27
|
Requires-Dist: pandas<2.3.0,>=2.1.0; sys_platform == 'win32'
|
|
27
28
|
Requires-Dist: pandas>=2.0.0; sys_platform == 'darwin'
|
|
28
|
-
Requires-Dist:
|
|
29
|
+
Requires-Dist: pandas>=2.1.0; sys_platform == 'linux' and python_version >= '3.12'
|
|
30
|
+
Requires-Dist: pyarrow<13.0.0,>=10.0.0; sys_platform == 'linux' and python_version < '3.12'
|
|
29
31
|
Requires-Dist: pyarrow<15.0.0,>=12.0.0; sys_platform == 'win32'
|
|
30
32
|
Requires-Dist: pyarrow>=12.0.0; sys_platform == 'darwin'
|
|
31
|
-
Requires-Dist:
|
|
33
|
+
Requires-Dist: pyarrow>=16.0.0; sys_platform == 'linux' and python_version >= '3.12'
|
|
34
|
+
Requires-Dist: scikit-learn<2.0,>=1.2; sys_platform == 'linux' and python_version < '3.12'
|
|
32
35
|
Requires-Dist: scikit-learn>=1.3.0; sys_platform == 'darwin'
|
|
36
|
+
Requires-Dist: scikit-learn>=1.3.0; sys_platform == 'linux' and python_version >= '3.12'
|
|
33
37
|
Requires-Dist: scikit-learn>=1.3.0; sys_platform == 'win32'
|
|
34
|
-
Requires-Dist: scipy<1.12,>=1.8; sys_platform == 'linux'
|
|
38
|
+
Requires-Dist: scipy<1.12,>=1.8; sys_platform == 'linux' and python_version < '3.12'
|
|
35
39
|
Requires-Dist: scipy>=1.10.0; sys_platform == 'darwin'
|
|
36
40
|
Requires-Dist: scipy>=1.10.0; sys_platform == 'win32'
|
|
41
|
+
Requires-Dist: scipy>=1.11.0; sys_platform == 'linux' and python_version >= '3.12'
|
|
37
42
|
Requires-Dist: torch>=2.0.0
|
|
38
43
|
Requires-Dist: torchvision>=0.15.0
|
|
39
44
|
Requires-Dist: tqdm>=4.65.0
|
|
@@ -56,9 +61,9 @@ Description-Content-Type: text/markdown
|
|
|
56
61
|

|
|
57
62
|

|
|
58
63
|

|
|
59
|
-

|
|
60
65
|
|
|
61
|
-
[中文版](README_zh.md)
|
|
66
|
+
English | [中文版](README_zh.md)
|
|
62
67
|
|
|
63
68
|
**A Unified, Efficient, and Scalable Recommendation System Framework**
|
|
64
69
|
|
|
@@ -264,7 +269,6 @@ NextRec is inspired by the following great open-source projects:
|
|
|
264
269
|
- **torch-rechub** - A Lighting Pytorch Framework for Recommendation Models, Easy-to-use and Easy-to-extend.
|
|
265
270
|
- **FuxiCTR** — Configurable and reproducible CTR prediction library
|
|
266
271
|
- **RecBole** — Unified and efficient recommendation library
|
|
267
|
-
- **PaddleRec** — Large-scale recommendation algorithm library
|
|
268
272
|
|
|
269
273
|
Special thanks to all open-source contributors!
|
|
270
274
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
nextrec/__init__.py,sha256=CvocnY2uBp0cjNkhrT6ogw0q2bN9s1GNp754FLO-7lo,1117
|
|
2
|
-
nextrec/__version__.py,sha256=
|
|
2
|
+
nextrec/__version__.py,sha256=nllDrH0jyChMuuYrK0CC55iTBKUNTUjejtcwxyUF2EQ,23
|
|
3
3
|
nextrec/basic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
nextrec/basic/activation.py,sha256=XJDTFzmacpLq8DMNbFVhZ3WhlOmKDE88vp0udnVpXtE,2808
|
|
5
5
|
nextrec/basic/callback.py,sha256=c0QeolbPJzCYhJnPf9rrZwFU13zmLxg59nvQGbpetNo,1039
|
|
@@ -8,7 +8,7 @@ nextrec/basic/features.py,sha256=wJbiDqE_qWA5gArUm-NYHaLgk7AMxpA7loaovf84dSU,252
|
|
|
8
8
|
nextrec/basic/layers.py,sha256=dvMir_0PJQfZv0uCUeqyiJpb-QOz0f2CUu2Cuuxh7iA,38300
|
|
9
9
|
nextrec/basic/loggers.py,sha256=0fupxPiHrKcBEJTBm0Sjcim0rU-n0gYKuy6IiCYX1Bw,3480
|
|
10
10
|
nextrec/basic/metrics.py,sha256=p79-IRRprLcXjjicrG41vM0zwRGtUY5tTPoybpvz-io,20402
|
|
11
|
-
nextrec/basic/model.py,sha256=
|
|
11
|
+
nextrec/basic/model.py,sha256=HeExyUkhihiARJvCXfLztkMDfUELR9WGJKtn26QAfPc,65879
|
|
12
12
|
nextrec/data/__init__.py,sha256=vvBNAdHcVO54aaaT-SyYHWsPHhoH8GvrlZ2hMRjqyF8,524
|
|
13
13
|
nextrec/data/data_utils.py,sha256=rpcj5CIWw8RlLn1NYva_gEOlpYG1cy65rB1BSv23XAM,4113
|
|
14
14
|
nextrec/data/preprocessor.py,sha256=0gYc_nH6ek3QxgncSZ8B8KyYmIYdCFMx9rSEdo4-aFw,26442
|
|
@@ -45,7 +45,7 @@ nextrec/utils/common.py,sha256=-LrRY1MFAhgeyZkKyqdVQGxev6eH3gigNtlRKw5f8Iw,214
|
|
|
45
45
|
nextrec/utils/embedding.py,sha256=Xl5bXAdxdGc0FV3FthNqJe9MP0M_rZI1uaOlPi3vLj8,478
|
|
46
46
|
nextrec/utils/initializer.py,sha256=ka5sgXWqAb9x5hQS6ypgonR93OUajBVUAwO7q-JPjIE,1660
|
|
47
47
|
nextrec/utils/optimizer.py,sha256=g9IETUdflM89YKSzInP_iS_hTnDy_cjpm6Wcq9V9_vE,2468
|
|
48
|
-
nextrec-0.1.
|
|
49
|
-
nextrec-0.1.
|
|
50
|
-
nextrec-0.1.
|
|
51
|
-
nextrec-0.1.
|
|
48
|
+
nextrec-0.1.11.dist-info/METADATA,sha256=DNNd7XuW1MZH4fa4tLqQsxKfcveloyR6Oo1YMBIr34A,11425
|
|
49
|
+
nextrec-0.1.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
50
|
+
nextrec-0.1.11.dist-info/licenses/LICENSE,sha256=2fQfVKeafywkni7MYHyClC6RGGC3laLTXCNBx-ubtp0,1064
|
|
51
|
+
nextrec-0.1.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|