Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
keras-team
GitHub Repository: keras-team/keras-io
Path: blob/master/scripts/rs_master.py
3273 views
1
FEATURE_INTERACTION_LAYERS_MASTER = {
2
"path": "feature_interaction_layers/",
3
"title": "Feature Interaction Layers",
4
"toc": True,
5
"children": [
6
{
7
"path": "dot_interaction",
8
"title": "DotInteraction layer",
9
"generate": [
10
"keras_rs.layers.DotInteraction",
11
"keras_rs.layers.DotInteraction.call",
12
],
13
},
14
{
15
"path": "feature_cross",
16
"title": "FeatureCross layer",
17
"generate": [
18
"keras_rs.layers.FeatureCross",
19
"keras_rs.layers.FeatureCross.call",
20
],
21
},
22
]
23
}
24
25
RETRIEVAL_LAYERS_MASTER = {
26
"path": "retrieval_layers/",
27
"title": "Retrieval Layers",
28
"toc": True,
29
"children": [
30
{
31
"path": "retrieval",
32
"title": "Retrieval layer",
33
"generate": [
34
"keras_rs.layers.Retrieval",
35
"keras_rs.layers.Retrieval.call",
36
"keras_rs.layers.Retrieval.update_candidates",
37
"keras_rs.layers.Retrieval.compute_score",
38
],
39
},
40
{
41
"path": "brute_force_retrieval",
42
"title": "BruteForceRetrieval layer",
43
"generate": [
44
"keras_rs.layers.BruteForceRetrieval",
45
"keras_rs.layers.BruteForceRetrieval.call",
46
"keras_rs.layers.BruteForceRetrieval.update_candidates",
47
],
48
},
49
# {
50
# "path": "tpu_approximate_retrieval",
51
# "title": "TPUApproximateRetrieval layer",
52
# "generate": [
53
# "keras_rs.layers.TPUApproximateRetrieval",
54
# "keras_rs.layers.TPUApproximateRetrieval.call",
55
# ],
56
# },
57
{
58
"path": "hard_negative_mining",
59
"title": "HardNegativeMining layer",
60
"generate": [
61
"keras_rs.layers.HardNegativeMining",
62
"keras_rs.layers.HardNegativeMining.call",
63
],
64
},
65
{
66
"path": "remove_accidental_hits",
67
"title": "RemoveAccidentalHits layer",
68
"generate": [
69
"keras_rs.layers.RemoveAccidentalHits",
70
"keras_rs.layers.RemoveAccidentalHits.call",
71
],
72
},
73
{
74
"path": "sampling_probability_correction",
75
"title": "SamplingProbabilityCorrection layer",
76
"generate": [
77
"keras_rs.layers.SamplingProbabilityCorrection",
78
"keras_rs.layers.SamplingProbabilityCorrection.call",
79
],
80
},
81
]
82
}
83
84
EMBEDDING_LAYERS_MASTER = {
85
"path": "embedding_layers/",
86
"title": "Embedding Layers",
87
"toc": True,
88
"children": [
89
{
90
"path": "distributed_embedding",
91
"title": "DistributedEmbedding layer",
92
"generate": [
93
"keras_rs.layers.DistributedEmbedding",
94
"keras_rs.layers.DistributedEmbedding.call",
95
"keras_rs.layers.DistributedEmbedding.preprocess",
96
],
97
},
98
{
99
"path": "table_config",
100
"title": "TableConfig configuration class",
101
"generate": [
102
"keras_rs.layers.TableConfig",
103
],
104
},
105
{
106
"path": "feature_config",
107
"title": "FeatureConfig configuration class",
108
"generate": [
109
"keras_rs.layers.FeatureConfig",
110
],
111
},
112
{
113
"path": "embed_reduce",
114
"title": "EmbedReduce layer",
115
"generate": [
116
"keras_rs.layers.EmbedReduce",
117
"keras_rs.layers.EmbedReduce.call",
118
],
119
},
120
]
121
}
122
123
LOSSES_MASTER = {
124
"path": "losses/",
125
"title": "Losses",
126
"toc": True,
127
"children": [
128
{
129
"path": "pairwise_hinge_loss",
130
"title": "PairwiseHingeLoss",
131
"generate": [
132
"keras_rs.losses.PairwiseHingeLoss",
133
"keras_rs.losses.PairwiseHingeLoss.call",
134
],
135
},
136
{
137
"path": "pairwise_logistic_loss",
138
"title": "PairwiseLogisticLoss",
139
"generate": [
140
"keras_rs.losses.PairwiseLogisticLoss",
141
"keras_rs.losses.PairwiseLogisticLoss.call",
142
],
143
},
144
{
145
"path": "pairwise_mean_squared_error",
146
"title": "PairwiseMeanSquaredError",
147
"generate": [
148
"keras_rs.losses.PairwiseMeanSquaredError",
149
"keras_rs.losses.PairwiseMeanSquaredError.call",
150
],
151
},
152
{
153
"path": "pairwise_soft_zero_one_loss",
154
"title": "PairwiseSoftZeroOneLoss",
155
"generate": [
156
"keras_rs.losses.PairwiseSoftZeroOneLoss",
157
"keras_rs.losses.PairwiseSoftZeroOneLoss.call",
158
],
159
},
160
# {
161
# "path": "list_mle_loss",
162
# "title": "ListMLELoss",
163
# "generate": [
164
# "keras_rs.losses.ListMLELoss",
165
# "keras_rs.losses.ListMLELoss.call",
166
# ],
167
# },
168
]
169
}
170
171
METRICS_MASTER = {
172
"path": "metrics/",
173
"title": "Metrics",
174
"toc": True,
175
"children": [
176
{
177
"path": "mean_reciprocal_rank",
178
"title": "MeanReciprocalRank metric",
179
"generate": [
180
"keras_rs.metrics.MeanReciprocalRank",
181
],
182
},
183
{
184
"path": "mean_average_precision",
185
"title": "MeanAveragePrecision metric",
186
"generate": [
187
"keras_rs.metrics.MeanAveragePrecision",
188
],
189
},
190
{
191
"path": "dcg",
192
"title": "DCG metric",
193
"generate": [
194
"keras_rs.metrics.DCG",
195
],
196
},
197
{
198
"path": "ndcg",
199
"title": "nDCG metric",
200
"generate": [
201
"keras_rs.metrics.NDCG",
202
],
203
},
204
]
205
}
206
207
RS_API_MASTER = {
208
"path": "api/",
209
"title": "API documentation",
210
"toc": True,
211
"children": [
212
EMBEDDING_LAYERS_MASTER,
213
FEATURE_INTERACTION_LAYERS_MASTER,
214
RETRIEVAL_LAYERS_MASTER,
215
LOSSES_MASTER,
216
METRICS_MASTER,
217
],
218
}
219
220
RS_EXAMPLES_MASTER = {
221
"path": "examples/",
222
"title": "Examples",
223
"toc": True,
224
"children": [
225
{
226
"path": "basic_retrieval",
227
"title": "Recommending movies: retrieval",
228
},
229
{
230
"path": "basic_ranking",
231
"title": "Recommending movies: ranking",
232
},
233
{
234
"path": "data_parallel_retrieval",
235
"title": "Retrieval with data parallel training",
236
},
237
{
238
"path": "sequential_retrieval",
239
"title": "Sequential retrieval [GRU4Rec]",
240
},
241
{
242
"path": "scann",
243
"title": (
244
"Faster retrieval with Scalable Nearest Neighbours (ScANN)"
245
)
246
},
247
{
248
"path": "multi_task",
249
"title": "Multi-task recommenders: retrieval + ranking",
250
},
251
{
252
"path": "deep_recommender",
253
"title": "Deep Recommenders",
254
},
255
{
256
"path": "listwise_ranking",
257
"title": "List-wise ranking",
258
},
259
{
260
"path": "dcn",
261
"title": "Ranking with Deep and Cross Networks",
262
},
263
{
264
"path": "sas_rec",
265
"title": "Sequential retrieval using SASRec",
266
},
267
{
268
"path": "distributed_embedding_jax",
269
"title": "DistributedEmbedding using TPU SparseCore and JAX",
270
},
271
{
272
"path": "distributed_embedding_tf",
273
"title": "DistributedEmbedding using TPU SparseCore and TensorFlow",
274
},
275
],
276
}
277
278
RS_MASTER = {
279
"path": "keras_rs/",
280
"title": "KerasRS",
281
"children": [
282
RS_API_MASTER,
283
RS_EXAMPLES_MASTER,
284
],
285
}
286
287