MCPcopy Create free account

hub / github.com/datawhalechina/fun-rec / functions

Functions1,084 in github.com/datawhalechina/fun-rec

↓ 3 callersFunction_update_movie_es
辅助函数:将电影更新推送到 Elasticsearch
web_project/backend/app/api/v1/endpoints/ratings.py:216
↓ 3 callersFunction_update_movie_rating
辅助函数:更新电影的平均评分和评分数
web_project/backend/app/api/v1/endpoints/ratings.py:202
↓ 3 callersFunctiona
(t,e,n)
docs/_static/d2l.js:38
↓ 3 callersFunctionaddHandle
* 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 callersFunctionajaxExtend
( target, src )
docs/_static/jquery-3.6.0.js:9110
↓ 3 callersMethodapply_attention
应用注意力机制
src/funrec/models/hstu.py:208
↓ 3 callersFunctionboxModelAdjustment
( elem, dimension, box, isBorderBox, styles, computedVal )
docs/_static/jquery-3.6.0.js:6707
↓ 3 callersFunctionbuild_metrics_table
构建一个简单的单行表格,显示指标名称作为标题及其值。 参数: metrics: 指标名称 -> 数值的映射 返回: 由tabulate以'grid'格式渲染的表格字符串,不包含模型/状态列。
src/funrec/utils.py:105
↓ 3 callersMethodcan_handle
检查该策略是否能处理给定用户。 重写此方法以实现策略特定的资格检查。 例如,PreferredGenreStrategy 要求 preferred_genres 已设置。 Args:
web_project/backend/online/cold_start/base.py:51
↓ 3 callersFunctionchainResult
(instance, obj)
docs/_static/underscore-1.13.1.js:1838
↓ 3 callersFunctionclassesToArray
( value )
docs/_static/jquery-3.6.0.js:8264
↓ 3 callersFunctioncreateAssigner
(keysFunc, defaults)
docs/_static/underscore-1.13.1.js:575
↓ 3 callersFunctioncreateEvent_
* 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 callersFunctiondeepGet
(obj, path)
docs/_static/underscore-1.13.1.js:657
↓ 3 callersFunctiondone
( status, nativeStatusText, responses, headers )
docs/_static/jquery-3.6.0.js:9704
↓ 3 callersFunctionelementMatcher
( matchers )
docs/_static/jquery-3.6.0.js:2464
↓ 3 callersFunctioneq
(a, b, aStack, bStack)
docs/_static/underscore-1.13.1.js:356
↓ 3 callersFunctionevaluate_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 callersFunctionfe
(e,t)
docs/_static/jquery.js:2
↓ 3 callersFunctionfinalPropName
( name )
docs/_static/jquery-3.6.0.js:6669
↓ 3 callersFunctioni
(t,e,n)
docs/_static/d2l.js:38
↓ 3 callersFunctioni
(e,t,s)
docs/_static/material-design-lite-1.3.0/material.min.js:8
↓ 3 callersFunctionie11fingerprint
(methods)
docs/_static/underscore-1.13.1.js:494
↓ 3 callersFunctionisHiddenWithinTree
( elem, el )
docs/_static/jquery-3.6.0.js:4721
↓ 3 callersFunctionitem_features_provider
(movie_ids: List[int])
web_project/backend/app/api/v1/endpoints/recommendations.py:181
↓ 3 callersFunctionj
(e,t)
docs/_static/jquery.js:2
↓ 3 callersFunctionload_pickle_file
从 pickle 文件加载数据
web_project/backend/scripts/ingest_data_to_database.py:39
↓ 3 callersFunctionprepare_for_tf
(df)
src/funrec/data/preprocess/e_commerce.py:185
↓ 3 callersFunctionsetGlobalEval
( elems, refElements )
docs/_static/jquery-3.6.0.js:4990
↓ 3 callersFunctiontestContext
* 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 callersMethodto_dict
转换为字典用于 API 响应
web_project/backend/online/pipeline.py:68
↓ 3 callersFunctionvt
(e)
docs/_static/jquery.js:2
↓ 3 callersFunctionwe
(i)
docs/_static/jquery.js:2
↓ 3 callersFunctionwinnow
( elements, qualifier, not )
docs/_static/jquery-3.6.0.js:3039
↓ 3 callersFunctionze
(e)
docs/_static/jquery.js:2
↓ 2 callersFunctionB
(e)
docs/_static/sphinx_materialdesign_theme.js:110
↓ 2 callersFunctionDOMEval
( code, node, doc )
docs/_static/jquery-3.6.0.js:107
↓ 2 callersFunctionE
(e)
docs/_static/material-design-lite-1.3.0/material.min.js:9
↓ 2 callersFunctionFe
(e,t)
docs/_static/jquery.js:2
↓ 2 callersFunctionIt
(o)
docs/_static/jquery.js:2
↓ 2 callersFunctionJ
(n)
docs/_static/underscore.js:6
↓ 2 callersFunctionJe
(e,t,n)
docs/_static/jquery.js:2
↓ 2 callersFunctionK
(n)
docs/_static/underscore.js:6
↓ 2 callersFunctionLe
(e,t)
docs/_static/jquery.js:2
↓ 2 callersFunctionLn
(n)
docs/_static/underscore.js:6
↓ 2 callersFunctionMe
(e,t,n)
docs/_static/jquery.js:2
↓ 2 callersFunctionMn
(n)
docs/_static/underscore.js:6
↓ 2 callersFunctionNr
(n,r)
docs/_static/underscore.js:6
↓ 2 callersFunctionOe
(e,t,n)
docs/_static/jquery.js:2
↓ 2 callersFunctionR
(e)
docs/_static/jquery.js:2
↓ 2 callersFunctionRn
(n)
docs/_static/underscore.js:6
↓ 2 callersFunctionTe
(e,r)
docs/_static/sphinx_materialdesign_theme.js:491
↓ 2 callersFunctionVn
(n,r,t)
docs/_static/underscore.js:6
↓ 2 callersFunctionWn
(n,r)
docs/_static/underscore.js:6
↓ 2 callersFunctionWt
(t,i,o,a)
docs/_static/jquery.js:2
↓ 2 callersFunctionZ
(e,t,n)
docs/_static/jquery.js:2
↓ 2 callersFunctionZ
(n,r)
docs/_static/underscore.js:6
↓ 2 callersFunction_$1
(obj)
docs/_static/underscore-1.13.1.js:321
↓ 2 callersMethod_calculate_ucb_scores
计算所有类型的 UCB 分数。 UCB = 平均奖励 + c * sqrt(log(总次数) / n) 没有统计数据的类型获得最大探索奖励。
web_project/backend/online/cold_start/ucb_genre.py:189
↓ 2 callersMethod_can_add
检查添加该物品是否会违反连续约束。 如果可以添加该物品而不超过 max_consecutive 限制,则返回 True。
web_project/backend/online/reranking/dispersion.py:71
↓ 2 callersFunction_create_session_features_from_session_id
( data_dict: Dict[str, Any], )
src/funrec/features/processors.py:387
↓ 2 callersFunction_early_subsample
(data: Dict[str, Any], size: int)
src/funrec/features/processors.py:251
↓ 2 callersMethod_ensure_resources_loaded
在首次访问时懒加载资源。
web_project/backend/online/recall/resource_manager.py:73
↓ 2 callersMethod_ensure_resources_loaded
在首次访问时懒加载资源。
web_project/backend/online/ranking/resource_manager.py:87
↓ 2 callersMethod_fallback_ranking
回退策略:使用召回分数作为排序分数
web_project/backend/online/pipeline.py:443
↓ 2 callersMethod_get_fallback_genres
数据库不可用时的降级类型列表。
web_project/backend/online/cold_start/ucb_genre.py:109
↓ 2 callersMethod_get_ucb_stats_key
获取用户 UCB 统计数据的 Redis 键。
web_project/backend/online/cold_start/ucb_genre.py:122
↓ 2 callersMethod_rerank
阶段 3: 多样性重排序 为物品补充特征(类型、年份)并应用打散策略 以提高推荐多样性。 当前应用: - 类型打散(最多 2 个连续相同类型) - 年代打散(最多 3
web_project/backend/online/pipeline.py:400
↓ 2 callersFunction_update_user_history_redis
辅助函数:将电影添加到 Redis 中的用户历史并更新偏好
web_project/backend/app/api/v1/endpoints/ratings.py:230
↓ 2 callersFunctiona
(n,a)
docs/_static/material-design-lite-1.3.0/material.min.js:8
↓ 2 callersFunctionaddGetHookIf
( conditionFn, hookFn )
docs/_static/jquery-3.6.0.js:6629
↓ 2 callersFunctionaddToPrefiltersOrTransports
( structure )
docs/_static/jquery-3.6.0.js:9047
↓ 2 callersFunctionadjustCSS
( elem, prop, valueParts, tween )
docs/_static/jquery-3.6.0.js:4742
↓ 2 callersFunctionadoptValue
( value, resolve, reject, noValue )
docs/_static/jquery-3.6.0.js:3659
↓ 2 callersFunctionallKeys
(obj)
docs/_static/underscore-1.13.1.js:481
↓ 2 callersFunctionan
(n)
docs/_static/underscore.js:6
↓ 2 callersFunctionapply_attention_activation
基于目标Item对会话特征应用注意力激活。 该组件基于会话特征与目标Item的相关性来激活会话特征。 直觉是并非所有会话对预测用户对特定Item的兴趣都同等相关。 教育说明: - 注意力机制允许模型关注最相关的会话 - 目标Item嵌入为我们试图
src/funrec/models/dsin.py:406
↓ 2 callersFunctionapply_feature_transformations
根据配置规则进行特征处理 Args: features_config: 特征配置,包含变换规则 data_dict: 数据字典,包含需要变换的数据 Returns: 变换后的数据字典
src/funrec/features/processors.py:19
↓ 2 callersFunctionat
()
docs/_static/jquery.js:2
↓ 2 callersFunctionb
(e,t,n)
docs/_static/jquery.js:2
↓ 2 callersFunctionbaseCreate
(prototype)
docs/_static/underscore-1.13.1.js:610
↓ 2 callersFunctionbaseIteratee
(value, context, argCount)
docs/_static/underscore-1.13.1.js:737
↓ 2 callersFunctionbuildFragment
( elems, context, scripts, selection, ignored )
docs/_static/jquery-3.6.0.js:5006
↓ 2 callersFunctionbuild_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 callersFunctionbuild_model_comparison_table
构建多行表格,比较不同模型的指标。 参数: model_to_metrics: 模型显示名称 -> 指标字典的映射 返回: 由tabulate以'grid'格式渲染的表格字符串,每个模型一行。
src/funrec/utils.py:210
↓ 2 callersFunctionc
()
docs/_static/jquery.js:2
↓ 2 callersFunctioncgc_net
CGC结构 input_list: 每个任务都有一个输入,这些任务的输入都是共享的,为了方便处理,给每个任务都复制了一份 is_last: 主要是判断是否是最后一层CGC,如果是的话,就不需要把共享部分添加到输出中了
src/funrec/models/ple.py:12
↓ 2 callersFunctioncloneCopyEvent
( src, dest )
docs/_static/jquery-3.6.0.js:5987
↓ 2 callersFunctioncollectNonEnumProps
(obj, keys)
docs/_static/underscore-1.13.1.js:263
↓ 2 callersFunctionconvert_to_dict
将 DataFrame 转换为用于模型训练的字典格式
web_project/backend/offline/feature/preprocess_ranking.py:345
↓ 2 callersFunctioncreateDisabledPseudo
* 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 callersFunctioncreateEscaper
(map)
docs/_static/underscore-1.13.1.js:808
↓ 2 callersFunctioncreateFxNow
()
docs/_static/jquery-3.6.0.js:7287
↓ 2 callersFunctioncreateIndexFinder
(dir, predicateFind, sortedIndex)
docs/_static/underscore-1.13.1.js:1274
↓ 2 callersFunctioncreatePredicateIndexFinder
(dir)
docs/_static/underscore-1.13.1.js:1242
↓ 2 callersFunctioncreateReduce
(dir)
docs/_static/underscore-1.13.1.js:1355
↓ 2 callersFunctioncreateSizePropertyCheck
(getSizeProperty)
docs/_static/underscore-1.13.1.js:209
↓ 2 callersMethodcreate_index
使用正确的映射创建电影索引
web_project/backend/app/services/elasticsearch_service.py:92
↓ 2 callersFunctiondataAttr
( elem, key, data )
docs/_static/jquery-3.6.0.js:4430
↓ 2 callersFunctiondowngradeNode
(node)
docs/_static/material-design-lite-1.3.0/material.js:399
← previousnext →201–300 of 1,084, ranked by callers