MCPcopy Create free account

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

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

↓ 2 callersFunctiondr
(n,r,t)
docs/_static/underscore.js:6
↓ 2 callersFunctione
()
docs/_static/underscore.js:6
↓ 2 callersFunctionen
(n)
docs/_static/underscore.js:6
↓ 2 callersMethodencode_feature
编码单个特征值。 Args: feature_name: 特征名称 value: 原始特征值 Returns: 编码后的整数值(从 1
web_project/backend/online/ranking/resource_manager.py:195
↓ 2 callersFunctionexecuteBound
(sourceFunc, boundFunc, context, callingContext, args)
docs/_static/underscore-1.13.1.js:985
↓ 2 callersFunctionf
(n)
docs/_static/underscore.js:6
↓ 2 callersFunctionfind
(obj, predicate, context)
docs/_static/underscore-1.13.1.js:1309
↓ 2 callersFunctionfire
()
docs/_static/jquery-3.6.0.js:3487
↓ 2 callersFunctionfr
(n)
docs/_static/underscore.js:6
↓ 2 callersFunctionge
(t)
docs/_static/jquery.js:2
↓ 2 callersFunctiongetUpgradedListOfElement_
* Returns an array of the classNames of the upgraded classes on the element. * * @param {!Element} element The element to fetch data from. *
docs/_static/material-design-lite-1.3.0/material.js:127
↓ 2 callersFunctiongetWidthOrHeight
( elem, dimension, extra )
docs/_static/jquery-3.6.0.js:6775
↓ 2 callersFunctionget_password_hash
对密码进行哈希处理
web_project/backend/app/core/security.py:16
↓ 2 callersFunctionget_pipeline
获取或创建单例流水线实例
web_project/backend/online/pipeline.py:489
↓ 2 callersFunctiongroup_auc
计算group auc。 Args: ----------- test_features : Dict[str, Any] 测试特征字典,包含用户ID。 test_labels : Union[np.ndarray, Dict[str, n
src/funrec/evaluation/metrics.py:364
↓ 2 callersFunctionhit_rate_at_k
计算当前用户 hit rate@k 。 Args: recommended_items: 推荐物品ID列表 relevant_items: 实际物品ID列表 k: 推荐数量,默认10 Returns: fl
src/funrec/evaluation/metrics.py:154
↓ 2 callersFunctioningest_to_redis
将用户数据导入 Redis Args: flush: 是否在导入前清空 Redis 数据库
web_project/backend/offline/storage/redis_ingest.py:21
↓ 2 callersFunctioninit_db
初始化数据库 - 创建所有表 Args: drop_existing: 是否删除已存在的表
web_project/backend/app/database.py:32
↓ 2 callersFunctioninspect
( dataType )
docs/_static/jquery-3.6.0.js:9086
↓ 2 callersFunctioninspectPrefiltersOrTransports
( structure, options, originalOptions, jqXHR )
docs/_static/jquery-3.6.0.js:9081
↓ 2 callersFunctionisElementUpgraded_
* Returns true if the given element has already been upgraded for the given * class. * * @param {!Element} element The element we want to che
docs/_static/material-design-lite-1.3.0/material.js:142
↓ 2 callersFunctionje
(e,t)
docs/_static/jquery.js:2
↓ 2 callersFunctionke
(e,r)
docs/_static/sphinx_materialdesign_theme.js:491
↓ 2 callersFunctionload_config
根据模型名称加载配置,返回Config对象 Args: model_name: 模型名称 (如 "fm", "afm") Returns: Config对象,支持config.data、config.features等属性
src/funrec/config/__init__.py:127
↓ 2 callersFunctionload_data
基于配置加载训练和测试数据。 Args: data_config: - dataset_name: 数据集名称 - rating_threshold: 评分阈值(经典模型) Ret
src/funrec/data/loaders.py:31
↓ 2 callersFunctionload_env_with_fallback
自动定位并加载 .env 文件,提供合理的默认路径作为回退。 查找顺序: 1. 使用 find_dotenv() 自动查找 .env 文件 2. 如果未找到,使用合理的默认路径并发出警告 默认路径: - FUNREC_RAW_DATA_PATH:
src/funrec/utils.py:13
↓ 2 callersFunctionload_raw_data
加载原始 MovieLens 数据文件
web_project/backend/offline/feature/preprocess_retrieval.py:18
↓ 2 callersFunctionmanipulationTarget
( elem, content )
docs/_static/jquery-3.6.0.js:5962
↓ 2 callersFunctionn
()
docs/_static/material-design-lite-1.3.0/material.min.js:8
↓ 2 callersFunctionnegate
(predicate)
docs/_static/underscore-1.13.1.js:1186
↓ 2 callersMethodnormalize
归一化
src/funrec/models/hstu.py:158
↓ 2 callersFunctionnr
(n,r,t,e,u)
docs/_static/underscore.js:6
↓ 2 callersFunctionon
( elem, types, selector, data, fn, one )
docs/_static/jquery-3.6.0.js:5125
↓ 2 callersFunctionpe
(e,t)
docs/_static/jquery.js:2
↓ 2 callersFunctionpluck
(obj, key)
docs/_static/underscore-1.13.1.js:1456
↓ 2 callersFunctionpooling_group_embedding
对指定组的嵌入特征进行池化操作 Args: group_embedding_feature_dict (dict): 按组分类的嵌入特征字典 group_name (str): 需要池化的组名称 pooling_type (str): 池化类
src/funrec/models/utils.py:192
↓ 2 callersFunctionpr
(n)
docs/_static/underscore.js:6
↓ 2 callersFunctionprecision_at_k
计算当前用户 precision@k 。 Args: recommended_items: 推荐物品ID列表 relevant_items: 实际物品ID列表 k: 推荐数量,默认10 Returns: f
src/funrec/evaluation/metrics.py:45
↓ 2 callersFunctionproperty
(path)
docs/_static/underscore-1.13.1.js:705
↓ 2 callersFunctionrandom
(min, max)
docs/_static/underscore-1.13.1.js:793
↓ 2 callersMethodrecommend
运行完整的推荐流水线 Args: user_features: 用户特征字典,包含: - user_id: 用户标识符 - gender, age, occup
web_project/backend/online/pipeline.py:168
↓ 2 callersFunctionremove
( elem, selector, keepData )
docs/_static/jquery-3.6.0.js:6125
↓ 2 callersFunctionrun_ranking_preprocessing
精排模型预处理主流程 Args: neg_ratio_from_exposure: 曝光困难负样本比例 neg_ratio_random: 随机负样本比例 test_ratio: 测试集比例
web_project/backend/offline/feature/preprocess_ranking.py:359
↓ 2 callersFunctionrun_ranking_training
训练 DeepFM 精排模型
web_project/backend/offline/training/train_ranking.py:31
↓ 2 callersFunctionrun_retrieval_preprocessing
召回模型预处理主流程
web_project/backend/offline/feature/preprocess_retrieval.py:206
↓ 2 callersFunctionrun_retrieval_training
训练 YoutubeDNN 召回模型
web_project/backend/offline/training/train_retrieval.py:32
↓ 2 callersFunctions
(e,s)
docs/_static/material-design-lite-1.3.0/material.min.js:8
↓ 2 callersMethodsearch_movies
多字段搜索电影 Args: query: 搜索查询字符串 limit: 最大结果数量 min_score: 最小相关性分数 Returns:
web_project/backend/app/services/elasticsearch_service.py:184
↓ 2 callersFunctionshallowProperty
(key)
docs/_static/underscore-1.13.1.js:217
↓ 2 callersFunctionsibling
( cur, dir )
docs/_static/jquery-3.6.0.js:3334
↓ 2 callersFunctionsiblingCheck
* Checks document order of two siblings * @param {Element} a * @param {Element} b * @returns {Number} Returns less than 0 if a precedes b, greater
docs/_static/jquery-3.6.0.js:975
↓ 2 callersFunctionsiblings
( n, elem )
docs/_static/jquery-3.6.0.js:3012
↓ 2 callersFunctionsplitQuery
(query)
docs/_static/searchtools.js:142
↓ 2 callersFunctionstopQueue
( hooks )
docs/_static/jquery-3.6.0.js:7777
↓ 2 callersFunctionswap
( elem, options, callback )
docs/_static/jquery-3.6.0.js:6410
↓ 2 callersFunctiontemporarilyChangeTooltip
(el, newText)
docs/_static/d2l.js:95
↓ 2 callersFunctiontn
(n)
docs/_static/underscore.js:6
↓ 2 callersFunctiontoBufferView
(bufferSource)
docs/_static/underscore-1.13.1.js:344
↓ 2 callersFunctionu
()
docs/_static/jquery.js:2
↓ 2 callersFunctionupdateFunc
( i )
docs/_static/jquery-3.6.0.js:4008
↓ 2 callersFunctionupdate_ucb_genre_stats
当用户评分电影时更新 UCB 统计数据。 应在评分提交后从 ratings 接口调用此函数。 Args: user_id: 评分用户 movie_genres: 被评分电影的类型 rating: 用户评分(
web_project/backend/online/cold_start/ucb_genre.py:364
↓ 2 callersFunctionupgradeElementInternal
* Upgrades a specific element rather than all in the DOM. * * @param {!Element} element The element we wish to upgrade. * @param {string=} op
docs/_static/material-design-lite-1.3.0/material.js:207
↓ 2 callersFunctionwr
(n)
docs/_static/underscore.js:6
↓ 1 callersFunction$r
(n,r,t)
docs/_static/underscore.js:6
↓ 1 callersFunctionA
(n)
docs/_static/underscore.js:6
↓ 1 callersFunctionAnimation
( elem, properties, options )
docs/_static/jquery-3.6.0.js:7538
↓ 1 callersFunctionAt
(n,e,r,i)
docs/_static/jquery.js:2
↓ 1 callersFunctionC
(e)
docs/_static/sphinx_materialdesign_theme.js:4
↓ 1 callersFunctionC
(n)
docs/_static/underscore.js:6
↓ 1 callersFunctionCe
(d,h,g,v,y,e)
docs/_static/jquery.js:2
↓ 1 callersFunctionEn
(n)
docs/_static/underscore.js:6
↓ 1 callersFunctionIr
(n,r,t)
docs/_static/underscore.js:6
↓ 1 callersFunctionJr
(n,r,t,e)
docs/_static/underscore.js:6
↓ 1 callersFunctionTn
(n,r,t)
docs/_static/underscore.js:6
↓ 1 callersFunctionTr
(n,r,t)
docs/_static/underscore.js:6
↓ 1 callersFunctionV
(e)
docs/_static/sphinx_materialdesign_theme.js:110
↓ 1 callersFunctionX
(e,t)
docs/_static/sphinx_materialdesign_theme.js:110
↓ 1 callersFunctionYe
(e,t,n)
docs/_static/jquery.js:2
↓ 1 callersFunctionYr
(n)
docs/_static/underscore.js:6
↓ 1 callersFunctionZ
(e)
docs/_static/sphinx_materialdesign_theme.js:110
↓ 1 callersMethod__init__
(self, max_consecutive: int = 2)
web_project/backend/online/reranking/dispersion.py:212
↓ 1 callersMethod_build_agru
构建自定义 AGRU 单元。
src/funrec/models/dien.py:284
↓ 1 callersMethod_build_augru
构建自定义 AUGRU 单元。
src/funrec/models/dien.py:288
↓ 1 callersMethod_build_inverted_index
构建倒排索引以进行高效的相似度计算。
src/funrec/models/swing.py:98
↓ 1 callersMethod_calculate_item_similarity
使用基于用户的倒排索引优化计算物品相似度。 以更高效的格式存储相似度用于推荐。
src/funrec/models/item_cf.py:88
↓ 1 callersMethod_calculate_swing_similarity_optimized
使用优化方法计算Swing相似度。 仅计算有共同用户的物品对的相似度。 时间复杂度:O(R * avg_user_items),其中R是评分数量。
src/funrec/models/swing.py:120
↓ 1 callersMethod_calculate_user_similarity
使用基于物品的倒排索引优化计算用户相似度。 以更高效的格式存储相似度用于推荐。
src/funrec/models/user_cf.py:88
↓ 1 callersMethod_calculate_user_weights
计算用户权重以减少高活跃用户的影响。
src/funrec/models/swing.py:110
↓ 1 callersMethod_cold_start_recommend
使用专门策略处理冷启动用户 使用 ColdStartService,优先级: 1. PreferredGenreStrategy(如果用户设置了 preferred_genres) 2. PopularRecentS
web_project/backend/online/pipeline.py:265
↓ 1 callersMethod_compute_attention_scores
使用双线性形式计算兴趣状态与目标物品之间的注意力分数。 遵循原始 DIEN 论文: a_t = exp(h_t * W * e_a) / sum(exp(h_j * W * e_a)) 参数: interest_state
src/funrec/models/dien.py:339
↓ 1 callersMethod_compute_auxiliary_loss
计算兴趣提取的辅助损失。 辅助损失使用下一个行为来监督当前兴趣状态: - 正样本: 当前兴趣应该预测下一个正行为 - 负样本: 当前兴趣不应该预测下一个负行为 参数: interest_st
src/funrec/models/dien.py:145
↓ 1 callersFunction_displayItem
(item, searchTerms)
docs/_static/searchtools.js:60
↓ 1 callersFunction_displayNextItem
( results, resultCount, searchTerms )
docs/_static/searchtools.js:115
↓ 1 callersFunction_escapeRegExp
(string)
docs/_static/searchtools.js:57
↓ 1 callersMethod_fetch_user_features_from_redis
从 Redis 获取用户画像和历史
web_project/backend/online/recall/service.py:57
↓ 1 callersFunction_finishSearch
(resultCount)
docs/_static/searchtools.js:103
↓ 1 callersFunction_get_custom_objects
懒加载 TensorFlow 模型所需的自定义对象。 Args: tf_module: 已导入的 TensorFlow 模块,确保 TF 先被加载
web_project/backend/online/recall/resource_manager.py:25
↓ 1 callersFunction_get_custom_objects
懒加载 TensorFlow 模型所需的自定义对象。 Args: tf_module: 已导入的 TensorFlow 模块,确保 TF 先被加载
web_project/backend/online/ranking/resource_manager.py:29
↓ 1 callersMethod_get_fallback_allocation
用户无偏好且无 UCB 数据时的分配 Popular: 100%
web_project/backend/online/cold_start/service.py:185
↓ 1 callersMethod_get_genre_stats
获取用户所有类型的 UCB 统计数据。 Returns: 类型到 {"n": 计数, "reward": 总奖励} 的映射字典
web_project/backend/online/cold_start/ucb_genre.py:126
← previousnext →301–400 of 1,084, ranked by callers