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
↓ 3 callers
Function
_update_movie_es
辅助函数:将电影更新推送到 Elasticsearch
web_project/backend/app/api/v1/endpoints/ratings.py:216
↓ 3 callers
Function
_update_movie_rating
辅助函数:更新电影的平均评分和评分数
web_project/backend/app/api/v1/endpoints/ratings.py:202
↓ 3 callers
Function
a
(t,e,n)
docs/_static/d2l.js:38
↓ 3 callers
Function
addHandle
* Adds the same handler for all of the specified attrs * @param {String} attrs Pipe-separated list of attributes * @param {Function} handler The met
docs/_static/jquery-3.6.0.js:960
↓ 3 callers
Function
ajaxExtend
( target, src )
docs/_static/jquery-3.6.0.js:9110
↓ 3 callers
Method
apply_attention
应用注意力机制
src/funrec/models/hstu.py:208
↓ 3 callers
Function
boxModelAdjustment
( elem, dimension, box, isBorderBox, styles, computedVal )
docs/_static/jquery-3.6.0.js:6707
↓ 3 callers
Function
build_metrics_table
构建一个简单的单行表格,显示指标名称作为标题及其值。 参数: metrics: 指标名称 -> 数值的映射 返回: 由tabulate以'grid'格式渲染的表格字符串,不包含模型/状态列。
src/funrec/utils.py:105
↓ 3 callers
Method
can_handle
检查该策略是否能处理给定用户。 重写此方法以实现策略特定的资格检查。 例如,PreferredGenreStrategy 要求 preferred_genres 已设置。 Args:
web_project/backend/online/cold_start/base.py:51
↓ 3 callers
Function
chainResult
(instance, obj)
docs/_static/underscore-1.13.1.js:1838
↓ 3 callers
Function
classesToArray
( value )
docs/_static/jquery-3.6.0.js:8264
↓ 3 callers
Function
createAssigner
(keysFunc, defaults)
docs/_static/underscore-1.13.1.js:575
↓ 3 callers
Function
createEvent_
* Create an event object. * * @param {string} eventType The type name of the event. * @param {boolean} bubbles Whether the event should bubbl
docs/_static/material-design-lite-1.3.0/material.js:155
↓ 3 callers
Function
deepGet
(obj, path)
docs/_static/underscore-1.13.1.js:657
↓ 3 callers
Function
done
( status, nativeStatusText, responses, headers )
docs/_static/jquery-3.6.0.js:9704
↓ 3 callers
Function
elementMatcher
( matchers )
docs/_static/jquery-3.6.0.js:2464
↓ 3 callers
Function
eq
(a, b, aStack, bStack)
docs/_static/underscore-1.13.1.js:356
↓ 3 callers
Function
evaluate_embedding_model
评估基于embedding的模型,使用Hit Rate@k, NDCG@k, and Precision@k. 适用于two-tower模型和其他基于embedding的,并且导出用户和物品embedding表的模型。 Args: user_embs: 用
src/funrec/evaluation/evaluator.py:387
↓ 3 callers
Function
fe
(e,t)
docs/_static/jquery.js:2
↓ 3 callers
Function
finalPropName
( name )
docs/_static/jquery-3.6.0.js:6669
↓ 3 callers
Function
i
(t,e,n)
docs/_static/d2l.js:38
↓ 3 callers
Function
i
(e,t,s)
docs/_static/material-design-lite-1.3.0/material.min.js:8
↓ 3 callers
Function
ie11fingerprint
(methods)
docs/_static/underscore-1.13.1.js:494
↓ 3 callers
Function
isHiddenWithinTree
( elem, el )
docs/_static/jquery-3.6.0.js:4721
↓ 3 callers
Function
item_features_provider
(movie_ids: List[int])
web_project/backend/app/api/v1/endpoints/recommendations.py:181
↓ 3 callers
Function
j
(e,t)
docs/_static/jquery.js:2
↓ 3 callers
Function
load_pickle_file
从 pickle 文件加载数据
web_project/backend/scripts/ingest_data_to_database.py:39
↓ 3 callers
Function
prepare_for_tf
(df)
src/funrec/data/preprocess/e_commerce.py:185
↓ 3 callers
Function
setGlobalEval
( elems, refElements )
docs/_static/jquery-3.6.0.js:4990
↓ 3 callers
Function
testContext
* Checks a node for validity as a Sizzle context * @param {Element|Object=} context * @returns {Element|Object|Boolean} The input node if acceptable
docs/_static/jquery-3.6.0.js:1102
↓ 3 callers
Method
to_dict
转换为字典用于 API 响应
web_project/backend/online/pipeline.py:68
↓ 3 callers
Function
vt
(e)
docs/_static/jquery.js:2
↓ 3 callers
Function
we
(i)
docs/_static/jquery.js:2
↓ 3 callers
Function
winnow
( elements, qualifier, not )
docs/_static/jquery-3.6.0.js:3039
↓ 3 callers
Function
ze
(e)
docs/_static/jquery.js:2
↓ 2 callers
Function
B
(e)
docs/_static/sphinx_materialdesign_theme.js:110
↓ 2 callers
Function
DOMEval
( code, node, doc )
docs/_static/jquery-3.6.0.js:107
↓ 2 callers
Function
E
(e)
docs/_static/material-design-lite-1.3.0/material.min.js:9
↓ 2 callers
Function
Fe
(e,t)
docs/_static/jquery.js:2
↓ 2 callers
Function
It
(o)
docs/_static/jquery.js:2
↓ 2 callers
Function
J
(n)
docs/_static/underscore.js:6
↓ 2 callers
Function
Je
(e,t,n)
docs/_static/jquery.js:2
↓ 2 callers
Function
K
(n)
docs/_static/underscore.js:6
↓ 2 callers
Function
Le
(e,t)
docs/_static/jquery.js:2
↓ 2 callers
Function
Ln
(n)
docs/_static/underscore.js:6
↓ 2 callers
Function
Me
(e,t,n)
docs/_static/jquery.js:2
↓ 2 callers
Function
Mn
(n)
docs/_static/underscore.js:6
↓ 2 callers
Function
Nr
(n,r)
docs/_static/underscore.js:6
↓ 2 callers
Function
Oe
(e,t,n)
docs/_static/jquery.js:2
↓ 2 callers
Function
R
(e)
docs/_static/jquery.js:2
↓ 2 callers
Function
Rn
(n)
docs/_static/underscore.js:6
↓ 2 callers
Function
Te
(e,r)
docs/_static/sphinx_materialdesign_theme.js:491
↓ 2 callers
Function
Vn
(n,r,t)
docs/_static/underscore.js:6
↓ 2 callers
Function
Wn
(n,r)
docs/_static/underscore.js:6
↓ 2 callers
Function
Wt
(t,i,o,a)
docs/_static/jquery.js:2
↓ 2 callers
Function
Z
(e,t,n)
docs/_static/jquery.js:2
↓ 2 callers
Function
Z
(n,r)
docs/_static/underscore.js:6
↓ 2 callers
Function
_$1
(obj)
docs/_static/underscore-1.13.1.js:321
↓ 2 callers
Method
_calculate_ucb_scores
计算所有类型的 UCB 分数。 UCB = 平均奖励 + c * sqrt(log(总次数) / n) 没有统计数据的类型获得最大探索奖励。
web_project/backend/online/cold_start/ucb_genre.py:189
↓ 2 callers
Method
_can_add
检查添加该物品是否会违反连续约束。 如果可以添加该物品而不超过 max_consecutive 限制,则返回 True。
web_project/backend/online/reranking/dispersion.py:71
↓ 2 callers
Function
_create_session_features_from_session_id
( data_dict: Dict[str, Any], )
src/funrec/features/processors.py:387
↓ 2 callers
Function
_early_subsample
(data: Dict[str, Any], size: int)
src/funrec/features/processors.py:251
↓ 2 callers
Method
_ensure_resources_loaded
在首次访问时懒加载资源。
web_project/backend/online/recall/resource_manager.py:73
↓ 2 callers
Method
_ensure_resources_loaded
在首次访问时懒加载资源。
web_project/backend/online/ranking/resource_manager.py:87
↓ 2 callers
Method
_fallback_ranking
回退策略:使用召回分数作为排序分数
web_project/backend/online/pipeline.py:443
↓ 2 callers
Method
_get_fallback_genres
数据库不可用时的降级类型列表。
web_project/backend/online/cold_start/ucb_genre.py:109
↓ 2 callers
Method
_get_ucb_stats_key
获取用户 UCB 统计数据的 Redis 键。
web_project/backend/online/cold_start/ucb_genre.py:122
↓ 2 callers
Method
_rerank
阶段 3: 多样性重排序 为物品补充特征(类型、年份)并应用打散策略 以提高推荐多样性。 当前应用: - 类型打散(最多 2 个连续相同类型) - 年代打散(最多 3
web_project/backend/online/pipeline.py:400
↓ 2 callers
Function
_update_user_history_redis
辅助函数:将电影添加到 Redis 中的用户历史并更新偏好
web_project/backend/app/api/v1/endpoints/ratings.py:230
↓ 2 callers
Function
a
(n,a)
docs/_static/material-design-lite-1.3.0/material.min.js:8
↓ 2 callers
Function
addGetHookIf
( conditionFn, hookFn )
docs/_static/jquery-3.6.0.js:6629
↓ 2 callers
Function
addToPrefiltersOrTransports
( structure )
docs/_static/jquery-3.6.0.js:9047
↓ 2 callers
Function
adjustCSS
( elem, prop, valueParts, tween )
docs/_static/jquery-3.6.0.js:4742
↓ 2 callers
Function
adoptValue
( value, resolve, reject, noValue )
docs/_static/jquery-3.6.0.js:3659
↓ 2 callers
Function
allKeys
(obj)
docs/_static/underscore-1.13.1.js:481
↓ 2 callers
Function
an
(n)
docs/_static/underscore.js:6
↓ 2 callers
Function
apply_attention_activation
基于目标Item对会话特征应用注意力激活。 该组件基于会话特征与目标Item的相关性来激活会话特征。 直觉是并非所有会话对预测用户对特定Item的兴趣都同等相关。 教育说明: - 注意力机制允许模型关注最相关的会话 - 目标Item嵌入为我们试图
src/funrec/models/dsin.py:406
↓ 2 callers
Function
apply_feature_transformations
根据配置规则进行特征处理 Args: features_config: 特征配置,包含变换规则 data_dict: 数据字典,包含需要变换的数据 Returns: 变换后的数据字典
src/funrec/features/processors.py:19
↓ 2 callers
Function
at
()
docs/_static/jquery.js:2
↓ 2 callers
Function
b
(e,t,n)
docs/_static/jquery.js:2
↓ 2 callers
Function
baseCreate
(prototype)
docs/_static/underscore-1.13.1.js:610
↓ 2 callers
Function
baseIteratee
(value, context, argCount)
docs/_static/underscore-1.13.1.js:737
↓ 2 callers
Function
buildFragment
( elems, context, scripts, selection, ignored )
docs/_static/jquery-3.6.0.js:5006
↓ 2 callers
Function
build_data_dict
( data_df, total_item_id_set, max_seq_len=100, is_train=True, sample_num=100 )
src/funrec/data/preprocess/movielens.py:320
↓ 2 callers
Function
build_model_comparison_table
构建多行表格,比较不同模型的指标。 参数: model_to_metrics: 模型显示名称 -> 指标字典的映射 返回: 由tabulate以'grid'格式渲染的表格字符串,每个模型一行。
src/funrec/utils.py:210
↓ 2 callers
Function
c
()
docs/_static/jquery.js:2
↓ 2 callers
Function
cgc_net
CGC结构 input_list: 每个任务都有一个输入,这些任务的输入都是共享的,为了方便处理,给每个任务都复制了一份 is_last: 主要是判断是否是最后一层CGC,如果是的话,就不需要把共享部分添加到输出中了
src/funrec/models/ple.py:12
↓ 2 callers
Function
cloneCopyEvent
( src, dest )
docs/_static/jquery-3.6.0.js:5987
↓ 2 callers
Function
collectNonEnumProps
(obj, keys)
docs/_static/underscore-1.13.1.js:263
↓ 2 callers
Function
convert_to_dict
将 DataFrame 转换为用于模型训练的字典格式
web_project/backend/offline/feature/preprocess_ranking.py:345
↓ 2 callers
Function
createDisabledPseudo
* Returns a function to use in pseudos for :enabled/:disabled * @param {Boolean} disabled true for :disabled; false for :enabled
docs/_static/jquery-3.6.0.js:1023
↓ 2 callers
Function
createEscaper
(map)
docs/_static/underscore-1.13.1.js:808
↓ 2 callers
Function
createFxNow
()
docs/_static/jquery-3.6.0.js:7287
↓ 2 callers
Function
createIndexFinder
(dir, predicateFind, sortedIndex)
docs/_static/underscore-1.13.1.js:1274
↓ 2 callers
Function
createPredicateIndexFinder
(dir)
docs/_static/underscore-1.13.1.js:1242
↓ 2 callers
Function
createReduce
(dir)
docs/_static/underscore-1.13.1.js:1355
↓ 2 callers
Function
createSizePropertyCheck
(getSizeProperty)
docs/_static/underscore-1.13.1.js:209
↓ 2 callers
Method
create_index
使用正确的映射创建电影索引
web_project/backend/app/services/elasticsearch_service.py:92
↓ 2 callers
Function
dataAttr
( elem, key, data )
docs/_static/jquery-3.6.0.js:4430
↓ 2 callers
Function
downgradeNode
(node)
docs/_static/material-design-lite-1.3.0/material.js:399
← previous
next →
201–300 of 1,084, ranked by callers