Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/datawhalechina/fun-rec
/ functions
Functions
1,084 in github.com/datawhalechina/fun-rec
⨍
Functions
1,084
◇
Types & classes
127
↳
Endpoints
22
Function
build_xdeepfm_model
构建 xDeepFM (极端深度因子分解机) 排序模型。 Args: feature_columns: FeatureColumn 列表 model_config: 包含参数的字典: - dnn_units: 列表,DNN
src/funrec/models/xdeepfm.py:13
Function
build_youtubednn_model
(feature_columns, model_config)
src/funrec/models/youtubednn.py:11
Function
c
()
docs/_static/underscore.js:6
Function
c
(e)
docs/_static/material-design-lite-1.3.0/material.min.js:8
Function
cache
( key, value )
docs/_static/jquery-3.6.0.js:910
Method
call
对会话嵌入应用偏置编码。 参数: inputs:会话嵌入张量 形状:[batch_size, sess_max_count, sess_max_len, embedding_dim]
src/funrec/models/dsin.py:78
Method
call
(self, inputs, mask=None, *args, **kwargs)
src/funrec/models/layers.py:19
Method
call
(self, inputs, training=None)
src/funrec/models/layers.py:59
Method
call
(self, x, **kwargs)
src/funrec/models/layers.py:76
Method
call
(self, inputs)
src/funrec/models/layers.py:86
Method
call
(self, inputs)
src/funrec/models/layers.py:101
Method
call
(self, inputs)
src/funrec/models/layers.py:127
Method
call
(self, inputs, mask=None, **kwargs)
src/funrec/models/layers.py:169
Method
call
(self, inputs, training=None, **kwargs)
src/funrec/models/layers.py:212
Method
call
(self, inputs)
src/funrec/models/layers.py:246
Method
call
(self, inputs, *args, **kwargs)
src/funrec/models/layers.py:274
Method
call
(self, inputs, training=None, **kwargs)
src/funrec/models/layers.py:315
Method
call
(self, inputs, *args, **kwargs)
src/funrec/models/layers.py:384
Method
call
前向传播逻辑。 Args: inputs (tf.Tensor): 输入张量,形状为(batch_size, seq_len, embedding_dim)。 mask (tf.Tensor): 掩码张量,形状为(b
src/funrec/models/layers.py:431
Method
call
(self, inputs)
src/funrec/models/layers.py:484
Method
call
(self, inputs, training=None)
src/funrec/models/layers.py:578
Method
call
(self, inputs, training=None, **kwargs)
src/funrec/models/layers.py:608
Method
call
(self, inputs, mask=None, **kwargs)
src/funrec/models/layers.py:657
Method
call
(self, inputs, *args, **kwargs)
src/funrec/models/layers.py:727
Method
call
(self, target_index, embedding_table)
src/funrec/models/layers.py:758
Method
call
(self, inputs, training=None)
src/funrec/models/layers.py:819
Method
call
(self, inputs, training=None, **kwargs)
src/funrec/models/layers.py:902
Method
call
inputs: list, 包含所有特征的embedding矩阵, shape为[B, N, D]
src/funrec/models/layers.py:960
Method
call
实现交叉层的计算: x_{l+1} = x_0 * x_l^T * w_l + b_l + x_l Args: x_0: 原始输入,shape: (batch_size, feature_embedding_dim)
src/funrec/models/layers.py:1039
Method
call
(self, inputs, **kwargs)
src/funrec/models/layers.py:1101
Method
call
CIN层的前向传播 Args: inputs: 特征embedding表示,shape为[B, field_num, emb_dim] Returns: CIN的最终输出张量
src/funrec/models/layers.py:1157
Method
call
(self, inputs)
src/funrec/models/layers.py:1279
Method
call
(self, inputs)
src/funrec/models/layers.py:1344
Method
call
(self, inputs)
src/funrec/models/layers.py:1406
Method
call
( self, inputs, attention_mask=None, training=None,
src/funrec/models/layers.py:1483
Method
call
(self, query_vector, key_vectors)
src/funrec/models/layers.py:1545
Method
call
(self, inputs)
src/funrec/models/layers.py:1598
Method
call
(self, inputs, **kwargs)
src/funrec/models/layers.py:1619
Method
call
前向传播方法 参数: inputs: 包含两个元素的列表 [x, scene_emb] x: 输入特征张量,形状为 (batch_size, input_dim) scene_emb: 场景嵌入
src/funrec/models/layers.py:1704
Method
call
(self, inputs, training=None, **kwargs)
src/funrec/models/layers.py:1822
Method
call
(self, inputs, training=None, **kwargs)
src/funrec/models/layers.py:1875
Method
call
(self, inputs, training=None, **kwargs)
src/funrec/models/layers.py:1910
Method
call
(self, ref_tensor)
src/funrec/models/layers.py:1931
Method
call
(self, inputs, input_interval=None, training=True)
src/funrec/models/hstu.py:264
Method
call
兴趣提取层的前向传播。 参数: inputs: 包含 [behavior_embeddings, neg_behavior_embeddings (可选)] 的列表 - behavior_embeddings
src/funrec/models/dien.py:100
Method
call
兴趣演化层的前向传播。 参数: inputs: 包含 [interest_states, target_item_embedding] 的列表 - interest_states: 形状为 [batch_si
src/funrec/models/dien.py:292
Method
call
AGRU 的前向传播。 参数: inputs: [interest_states, attention_scores] 的列表 - interest_states: 形状为 [batch_size, seq_
src/funrec/models/dien.py:406
Method
call
AUGRU 的前向传播。 参数: inputs: [interest_states, attention_scores] 的列表 - interest_states: 形状为 [batch_size, seq
src/funrec/models/dien.py:485
Method
call
(self, inputs)
src/funrec/models/fm_recall.py:23
Method
call
(self, inputs)
src/funrec/models/fm_recall.py:38
Method
call
(self, inputs)
src/funrec/models/fm_recall.py:53
Method
call
(self, inputs)
src/funrec/models/fm_recall.py:67
Method
call
(self, inputs)
src/funrec/models/fm_recall.py:82
Method
call
参数: inputs: 特征嵌入 [batch_size, n+1, emb_dim], n 是特征数量,emb_dim 是嵌入维度 item_indices: 当前批次中每个样本对应的商品索引 [batch_size]
src/funrec/models/eges.py:120
Method
can_handle
检查用户是否设置了 preferred_genres。 该策略要求用户明确设置类型偏好(通常在注册时)。
web_project/backend/online/cold_start/preferred_genre.py:25
Method
can_handle
UCB 可以处理任何用户,但在有一些评分历史时效果最好。
web_project/backend/online/cold_start/ucb_genre.py:118
Method
can_handle
始终返回 True - 这是一个降级策略。
web_project/backend/online/cold_start/popular.py:35
Function
captureOutboundLink
(url)
docs/_static/d2l.js:224
Function
chain
(obj)
docs/_static/underscore-1.13.1.js:976
Function
check_identical_sequences
(group)
src/funrec/data/preprocess/kuairand.py:507
Function
chunk
(array, count)
docs/_static/underscore-1.13.1.js:1827
Method
clear_strategies
移除所有策略(实际上禁用重排序)
web_project/backend/online/reranking/service.py:101
Function
compact
(array)
docs/_static/underscore-1.13.1.js:1693
Function
compare_models
训练和评估多个模型并比较它们的指标。 每个模型可以通过以下方式指定: - name (str): 加载funrec.config下的模型 参数: models: 模型列表 verbose: 是否打印比较表格 ret
src/funrec/experiment.py:60
Function
completed
()
docs/_static/jquery-3.6.0.js:4117
Function
compose
()
docs/_static/underscore-1.13.1.js:1194
Function
compute_gauc
计算gAUC (Group AUC) - 每个用户的AUC的加权平均 Args: test_sample_dict: 测试样本字典 test_label_list: 测试标签列表 pred_ans: 模型预测结果 u
src/funrec/evaluation/metrics.py:177
Method
compute_mask
(self, inputs, mask=None)
src/funrec/models/layers.py:467
Method
compute_output_shape
(self, input_shape)
src/funrec/models/dsin.py:101
Method
compute_output_shape
计算输出形状 根据输入形状计算输出形状。
src/funrec/models/layers.py:407
Method
configure_strategies
用新策略替换当前策略 Args: strategies: 要使用的 RerankingStrategy 实例列表。 策略将按提供的顺序应用。
web_project/backend/online/reranking/service.py:79
Function
contrastive_loss
Batch内对比损失 (InfoNCE)。 参数: y_true: 未使用,但为了与Keras兼容而保留 y_pred: 来自模型的余弦相似度分数 temperature: 温度参数控制分布的集中度 返回: 对
src/funrec/training/loss.py:5
Function
cr
(n,r)
docs/_static/underscore.js:6
Function
create
(prototype, props)
docs/_static/underscore-1.13.1.js:623
Function
createMovie
(movieData, posterFile)
web_project/frontend/src/services/api.js:83
Function
createRating
(movieId, rating)
web_project/frontend/src/services/api.js:102
Function
create_dispersion_strategy
为任意特征创建自定义打散策略。 Args: feature_name: 特征名称(用于策略命名) feature_extractor: 从物品中提取打散键值的函数 max_consecutive: 允许的最大连续相同物品数量
web_project/backend/online/reranking/dispersion.py:241
Function
create_movie
创建新电影(仅管理员)
web_project/backend/app/api/v1/endpoints/movies.py:24
Function
create_or_update_rating
创建或更新电影评分(需要认证)
web_project/backend/app/api/v1/endpoints/ratings.py:46
Function
d
(e)
docs/_static/material-design-lite-1.3.0/material.min.js:8
Function
debounce
(func, wait, immediate)
docs/_static/underscore-1.13.1.js:1144
Function
deconstructComponentInternal
* Check the component for the downgrade method. * Execute if found. * Remove component from createdComponents list. * * @param {?component
docs/_static/material-design-lite-1.3.0/material.js:374
Function
defaultPrefilter
( elem, props, opts )
docs/_static/jquery-3.6.0.js:7329
Function
deleteRating
(movieId)
web_project/frontend/src/services/api.js:119
Method
delete_movie
从索引中删除电影
web_project/backend/app/services/elasticsearch_service.py:285
Function
delete_rating
删除用户对电影的评分
web_project/backend/app/api/v1/endpoints/ratings.py:168
Function
disableScript
( elem )
docs/_static/jquery-3.6.0.js:5973
Function
doAnimation
()
docs/_static/jquery-3.6.0.js:7759
Function
downgradeNodesInternal
* Downgrade either a given node, an array of nodes, or a NodeList. * * @param {!Node|!Array<!Node>|!NodeList} nodes
docs/_static/material-design-lite-1.3.0/material.js:394
Method
enabled
检查重排序是否启用
web_project/backend/online/reranking/service.py:64
Function
escapeChar
(match)
docs/_static/underscore-1.13.1.js:867
Function
escaper
(match)
docs/_static/underscore-1.13.1.js:809
Function
every
(obj, predicate, context)
docs/_static/underscore-1.13.1.js:1402
Function
f
(e)
docs/_static/material-design-lite-1.3.0/material.min.js:9
Function
fcamelCase
( _all, letter )
docs/_static/jquery-3.6.0.js:4212
Function
fcssescape
( ch, asCodePoint )
docs/_static/jquery-3.6.0.js:695
Function
findKey
(obj, predicate, context)
docs/_static/underscore-1.13.1.js:1232
Function
findWhere
(obj, attrs)
docs/_static/underscore-1.13.1.js:1317
Function
first
(array, n, guard)
docs/_static/underscore-1.13.1.js:1671
Method
fit
(self, train_hist_movie_id_list)
src/funrec/models/item2vec.py:16
← previous
next →
801–900 of 1,084, ranked by callers