MCPcopy Create free account

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

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

Functionobject
(list, values)
docs/_static/underscore-1.13.1.js:1791
Functionoe
()
docs/_static/jquery.js:2
Functionp
(e)
docs/_static/material-design-lite-1.3.0/material.min.js:8
Methodpad
(seq, max_len)
web_project/backend/online/recall/youtubednn.py:65
Functionpairs
(obj)
docs/_static/underscore-1.13.1.js:545
Functionparse_dien_feature_columns
Parse DIEN feature columns to extract (target, sequence) pairs. Args: feature_columns: List of feature column specifications Returns
src/funrec/models/utils.py:349
Functionpreprocess
(input_path: Path, output_path: Path)
src/funrec/data/preprocess/kuairand.py:12
Functionpreprocess
(input_path: Path, output_path: Path)
src/funrec/data/preprocess/e_commerce.py:10
Functionpreprocess_data
(movie_data_chunk)
src/funrec/data/preprocess/movielens.py:263
Functionprint_table
打印表格,如果列数过多会自动分割显示。 参数: metrics: 指标名称 -> 数值的映射 title: 表格标题(可选) max_cols: 每个子表格的最大列数 fixed_cols: 需要在每个子表格中重复显
src/funrec/utils.py:180
FunctionpropertyOf
(obj)
docs/_static/underscore-1.13.1.js:777
Functionprs_predict
运行PRS PMatch(FPSA)+ PRank(DPWN)以产生反映最佳排列的每个slate分数。 返回形状为[B, L]的分数;降序排序产生最终排列。
src/funrec/models/prs.py:231
Functionqe
(e)
docs/_static/jquery.js:2
Functionqr
(n,r,t)
docs/_static/underscore.js:6
Functionr
(t,s)
docs/_static/material-design-lite-1.3.0/material.min.js:8
Methodrank
使用 DeepFM 模型对候选物品进行排序。 Args: user_features: 用户特征字典 candidates: 召回阶段返回的候选物品列表 Re
web_project/backend/online/ranking/deepfm.py:153
Methodrank
按召回分数对候选物品进行排序。
web_project/backend/online/ranking/deepfm.py:197
Methodrecall
基于评分数量和平均评分召回热门电影
web_project/backend/online/recall/trending.py:10
Methodrecall
基于用户偏好类型召回电影(从历史行为中推断)
web_project/backend/online/recall/trending.py:70
Methodrecall
基于物品 Embedding 的协同过滤召回(Item-Item CF) 召回与用户最近观看物品相似的物品
web_project/backend/online/recall/item_based.py:13
Methodrecall
基于 YouTubeDNN 双塔模型的向量召回
web_project/backend/online/recall/youtubednn.py:74
Functionrecall_at_k
计算当前用户 recall@k 。 Args: recommended_items: 推荐物品ID列表 relevant_items: 实际物品ID列表 k: 推荐数量,默认10 Returns: --------
src/funrec/evaluation/metrics.py:68
Functionrecommend
获取个性化电影推荐 推荐流水线: 1. 从多个召回通道检索约100个多样化候选 2. 使用 DeepFM 模型进行 CTR 预估排序 3. 返回 top-k 排序后的推荐结果 Args: features: 用户特
web_project/backend/app/api/v1/endpoints/recommendations.py:142
Methodrecommend
推荐与用户偏好类型匹配的电影。 查询 ES 获取用户偏好类型中的高评分电影, 按评分和时间排序。
web_project/backend/online/cold_start/preferred_genre.py:34
Methodrecommend
为冷启动用户生成推荐。 Args: user_features: 用户特征字典,包含: - user_id: 用户标识符 - preferred_genres:
web_project/backend/online/cold_start/base.py:26
Methodrecommend
使用 UCB 类型选择进行电影推荐。 1. 如果是新用户,使用 preferred_genres 初始化 UCB 统计数据 2. 计算所有类型的 UCB 分数 3. 按 UCB 分数选择头部类型 4.
web_project/backend/online/cold_start/ucb_genre.py:256
Methodrecommend
推荐热门、高评分的新片。 查询 ES 获取高评分和高评分数量的电影, 优先选择较新的作品。
web_project/backend/online/cold_start/popular.py:39
Methodrecommend
使用直接计算的优化推荐,无需predict_score。 基于物品的协同过滤:推荐与用户已交互物品相似的物品。 参数: ----------- user_id : 原始用户ID n_recommend
src/funrec/models/item_cf.py:121
Methodrecommend
使用直接计算的优化推荐,无需predict_score。 基于您提供的算法。 参数: ----------- user_id : 原始用户ID n_recommendations : int, 推荐数
src/funrec/models/user_cf.py:120
FunctionregisterInternal
* Registers a class for future use and attempts to upgrade existing DOM. * * @param {componentHandler.ComponentConfigPublic} config
docs/_static/material-design-lite-1.3.0/material.js:296
FunctionregisterUpgradedCallbackInternal
* Allows user to be alerted to any upgrades that are performed for a given * component type * * @param {string} jsClass The class name of the
docs/_static/material-design-lite-1.3.0/material.js:350
Functionreject
(obj, predicate, context)
docs/_static/underscore-1.13.1.js:1397
Methodreload_models
重新加载精排模型 用于在不重启服务器的情况下更新模型。
web_project/backend/online/ranking/service.py:146
Methodrerank
对物品进行重排序以确保连续多样性。 物品按原始排序顺序处理。当某个物品会违反连续约束时, 将其延迟处理,稍后在合适时机插入。
web_project/backend/online/reranking/dispersion.py:99
Methodrerank
将重排序策略应用于输入物品 策略按链式顺序依次应用。每个策略 接收前一个策略的输出。 Args: items: 精排阶段的排序物品列表 user_fe
web_project/backend/online/reranking/service.py:106
FunctionrestoreScript
( elem )
docs/_static/jquery-3.6.0.js:5977
Functionresult
(obj, path, fallback)
docs/_static/underscore-1.13.1.js:950
FunctionreturnFalse
()
docs/_static/jquery-3.6.0.js:5102
FunctionreturnTrue
()
docs/_static/jquery-3.6.0.js:5098
Functionrmse
计算 Root Mean Squared Error(RMSE)。 Args: predictions: 预测值 actuals: 实际值 Returns: float: RMSE
src/funrec/evaluation/metrics.py:31
Functionroot
根路由
web_project/backend/app/main.py:47
Functionrun_experiment
运行完整的推荐模型实验流程 该函数封装了加载配置、加载数据、准备特征、训练模型和评估模型的完整流程, 使得代码实践部分可以简化为一行函数调用。 Args: model_name: 模型配置名称,如 'wide_deep', 'deepfm', '
src/funrec/experiment.py:10
Functionsampledsoftmaxloss
因为在模型构建的时候使用了sampled_softmax_loss,这里只需要计算mean就可以了
src/funrec/training/loss.py:34
FunctionscrollBehavior
(to, from, savedPosition)
web_project/frontend/src/router/index.js:43
FunctionsearchMovies
(query, limit = 20)
web_project/frontend/src/services/api.js:129
Functionsearch_movies
根据标题、类型或简介搜索电影 使用 Elasticsearch 提供快速、模糊和相关性排序的搜索结果。 结果按相关性分数排序。
web_project/backend/app/api/v1/endpoints/search.py:16
Functionsearch_suggestions
根据部分查询获取搜索建议 为自动补全功能返回快速建议。
web_project/backend/app/api/v1/endpoints/search.py:53
FunctionsetFilters
()
docs/_static/jquery-3.6.0.js:2313
Methodset_movie_genre_map
初始化召回策略的电影类型映射 应在应用启动时使用电影数据调用一次。
web_project/backend/online/pipeline.py:152
Methodset_movie_genre_map
从数据库对象填充电影类型映射表
web_project/backend/online/recall/resource_manager.py:156
Functionshuffle
(obj)
docs/_static/underscore-1.13.1.js:1539
Functionsignup
(userData)
web_project/frontend/src/stores/auth.js:20
Functionsignup
注册新用户
web_project/backend/app/api/v1/endpoints/auth.py:17
Functionsize
(obj)
docs/_static/underscore-1.13.1.js:1616
Functionsome
(obj, predicate, context)
docs/_static/underscore-1.13.1.js:1414
FunctionsortBy
(obj, iteratee, context)
docs/_static/underscore-1.13.1.js:1544
FunctionsortOrder
( a, b )
docs/_static/jquery-3.6.0.js:566
Functionsr
(n,r,t)
docs/_static/underscore.js:6
FunctionstopPropagationCallback
( e )
docs/_static/jquery-3.6.0.js:8625
Methodstrategy_names
获取所有已注册策略的名称
web_project/backend/online/cold_start/service.py:67
Methodstrategy_names
获取活跃策略的名称
web_project/backend/online/reranking/service.py:75
Functionsum_loss
(y_true, y_pred)
src/funrec/training/loss.py:39
FunctionsuperMatcher
( seed, context, xml, results, outermost )
docs/_static/jquery-3.6.0.js:2674
FunctiontagClick
(tab)
docs/_static/d2l.js:231
Functiontap
(obj, interceptor)
docs/_static/underscore-1.13.1.js:638
Functiontemplate
(text, settings, oldSettings)
docs/_static/underscore-1.13.1.js:882
Functionthrottle
(func, wait, options)
docs/_static/underscore-1.13.1.js:1099
Functionthrottled
()
docs/_static/underscore-1.13.1.js:1111
Functiontick
()
docs/_static/jquery-3.6.0.js:7548
Functiontimes
(n, iteratee, context)
docs/_static/underscore-1.13.1.js:785
FunctiontoArray
(obj)
docs/_static/underscore-1.13.1.js:1604
FunctiontoPath$1
(path)
docs/_static/underscore-1.13.1.js:645
Functionu
(e)
docs/_static/material-design-lite-1.3.0/material.min.js:9
FunctionuniqueId
(prefix)
docs/_static/underscore-1.13.1.js:970
FunctionunloadHandler
()
docs/_static/jquery-3.6.0.js:716
Functionunzip
(array)
docs/_static/underscore-1.13.1.js:1774
FunctionupdateProfile
(data)
web_project/frontend/src/stores/auth.js:83
Functionupdate_user_profile
更新当前用户资料(邮箱/用户名不可修改) 注意: preferred_genres 是用户声明的偏好(用于冷启动)。 这与 frequent_genres 不同,后者是根据评分历史计算得出的。
web_project/backend/app/api/v1/endpoints/users.py:80
FunctionupgradeAllRegisteredInternal
* Upgrades all registered components found in the current DOM. This is * automatically called on window load.
docs/_static/material-design-lite-1.3.0/material.js:361
FunctionupgradeElementsInternal
* Upgrades a specific list of elements rather than all in the DOM. * * @param {!Element|!Array<!Element>|!NodeList|!HTMLCollection} elements
docs/_static/material-design-lite-1.3.0/material.js:272
Functionwhere
(obj, attrs)
docs/_static/underscore-1.13.1.js:1462
Functionwrap
(func, wrapper)
docs/_static/underscore-1.13.1.js:1181
Functionxt
(e)
docs/_static/jquery.js:2
Functionyr
(n,r,t,e)
docs/_static/underscore.js:6
← previous1,001–1,084 of 1,084, ranked by callers