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
Method
fit
使用用户-物品交互数据训练模型(带有0/1标签的CTR数据)。 参数: ----------- user_item_interactions : 元组列表 (user_id, item_id, label) 或 DataFrame
src/funrec/models/item_cf.py:41
Method
fit
使用用户-物品交互数据(带有0/1标签的CTR数据)训练模型。 参数: ----------- user_item_interactions : 元组列表 (user_id, item_id, label) 或 DataFrame
src/funrec/models/user_cf.py:41
Function
flatten
(array, depth)
docs/_static/underscore-1.13.1.js:1699
Function
funescape
( escape, nonHex )
docs/_static/jquery-3.6.0.js:675
Function
getMovie
(movieId)
web_project/frontend/src/services/api.js:42
Function
getMovieCast
(movieId, limit = 10)
web_project/frontend/src/services/api.js:47
Function
getMovieCrew
(movieId)
web_project/frontend/src/services/api.js:52
Function
getMovies
(params = {})
web_project/frontend/src/services/api.js:32
Function
getPerson
(personId)
web_project/frontend/src/services/api.js:57
Function
getPopularMovies
(limit = 20)
web_project/frontend/src/services/api.js:37
Function
getPosterUrl
(movieId)
web_project/frontend/src/services/api.js:144
Function
getRecommendations
(userId, topK = 20)
web_project/frontend/src/services/api.js:67
Function
getStats
()
web_project/frontend/src/services/api.js:62
Function
getSuggestions
(query, limit = 10)
web_project/frontend/src/services/api.js:136
Function
getUserRating
(movieId)
web_project/frontend/src/services/api.js:111
Function
get_all_genres
获取所有可用的电影类型 - 用于电影偏好选择
web_project/backend/app/api/v1/endpoints/genres.py:15
Method
get_config
(self)
src/funrec/models/dsin.py:104
Method
get_config
(self)
src/funrec/models/layers.py:89
Method
get_config
(self)
src/funrec/models/layers.py:139
Method
get_config
获取层配置 返回层的配置参数,用于序列化和重建层。
src/funrec/models/layers.py:393
Method
get_config
返回层的配置字典。 Returns: dict: 配置字典。
src/funrec/models/layers.py:454
Method
get_config
(self)
src/funrec/models/layers.py:737
Method
get_config
(self)
src/funrec/models/hstu.py:448
Method
get_config
(self)
src/funrec/models/fm_recall.py:27
Method
get_config
(self)
src/funrec/models/fm_recall.py:56
Method
get_config
(self)
src/funrec/models/fm_recall.py:70
Method
get_config
(self)
src/funrec/models/fm_recall.py:85
Function
get_current_active_user
确保用户处于激活状态
web_project/backend/app/core/auth.py:64
Function
get_current_admin_user
获取当前管理员用户(需要超级用户权限)
web_project/backend/app/core/auth.py:71
Function
get_current_user
从 JWT 令牌获取当前认证用户
web_project/backend/app/core/auth.py:14
Function
get_current_user_profile
获取当前用户资料,包含偏好和历史记录
web_project/backend/app/api/v1/endpoints/users.py:28
Function
get_db
获取数据库会话的依赖注入函数
web_project/backend/app/database.py:23
Function
get_db
数据库会话依赖注入
web_project/backend/app/api/deps.py:7
Method
get_health_status
获取冷启动服务的健康状态
web_project/backend/online/cold_start/service.py:270
Method
get_health_status
获取重排序服务的健康状态
web_project/backend/online/reranking/service.py:166
Method
get_interaction_count
获取用户的交互次数。
web_project/backend/online/cold_start/detector.py:66
Function
get_movie
获取指定电影的详细信息
web_project/backend/app/api/v1/endpoints/movies.py:238
Function
get_movie_cast
获取指定电影的演员阵容
web_project/backend/app/api/v1/endpoints/movies.py:266
Function
get_movie_crew
获取指定电影的导演和编剧
web_project/backend/app/api/v1/endpoints/movies.py:318
Function
get_movies
获取分页电影列表,支持过滤条件
web_project/backend/app/api/v1/endpoints/movies.py:149
Function
get_person
获取人物详情(演员、导演等)
web_project/backend/app/api/v1/endpoints/people.py:14
Function
get_popular_movies
获取热门电影 - 基于 IMDb 评分和投票数
web_project/backend/app/api/v1/endpoints/movies.py:209
Function
get_statistics
获取数据库统计信息
web_project/backend/app/api/v1/endpoints/stats.py:14
Function
get_user_rating
获取当前用户对指定电影的评分
web_project/backend/app/api/v1/endpoints/ratings.py:143
Function
h
(e)
docs/_static/material-design-lite-1.3.0/material.min.js:8
Function
handler
( event )
docs/_static/jquery-3.6.0.js:8821
Function
has
(obj, path)
docs/_static/underscore-1.13.1.js:678
Function
health
推荐服务健康检查
web_project/backend/app/api/v1/endpoints/recommendations.py:207
Function
health_check
健康检查 - 用于监控服务状态
web_project/backend/app/api/v1/endpoints/health.py:17
Function
identity
(value)
docs/_static/underscore-1.13.1.js:690
Function
ie10IsDataView
(obj)
docs/_static/underscore-1.13.1.js:162
Function
intersection
(array)
docs/_static/underscore-1.13.1.js:1757
Function
isElement
(obj)
docs/_static/underscore-1.13.1.js:109
Function
isEmpty
(obj)
docs/_static/underscore-1.13.1.js:295
Function
isEqual
(a, b)
docs/_static/underscore-1.13.1.js:476
Function
isFinite$1
(obj)
docs/_static/underscore-1.13.1.js:192
Function
isNaN$1
(obj)
docs/_static/underscore-1.13.1.js:197
Function
isNull
(obj)
docs/_static/underscore-1.13.1.js:94
Function
isTypedArray
(obj)
docs/_static/underscore-1.13.1.js:232
Method
is_cold_start
判断用户是否处于冷启动状态。 用户为冷启动状态的条件: - 没有交互历史,或 - 交互次数少于 `threshold` Args: user_features
web_project/backend/online/cold_start/detector.py:34
Method
is_cold_start_ready
检查冷启动处理是否可用
web_project/backend/online/pipeline.py:148
Method
is_ranking_ready
检查精排是否可用
web_project/backend/online/pipeline.py:138
Method
is_ready
检查流水线是否就绪可用
web_project/backend/online/pipeline.py:133
Method
is_ready
检查服务是否就绪
web_project/backend/online/cold_start/service.py:62
Method
is_ready
检查策略是否准备好服务。
web_project/backend/online/reranking/base.py:45
Method
is_ready
检查重排序服务是否就绪
web_project/backend/online/reranking/service.py:59
Method
is_ready
检查策略是否就绪可用。
web_project/backend/online/ranking/base.py:48
Method
is_ready
检查资源是否已加载并就绪。
web_project/backend/online/ranking/resource_manager.py:232
Method
is_ready
检查精排服务是否就绪
web_project/backend/online/ranking/service.py:56
Method
is_ready
(self)
web_project/backend/online/ranking/deepfm.py:35
Method
is_reranking_ready
检查重排序是否可用
web_project/backend/online/pipeline.py:143
Function
keyInObj
(value, key, obj)
docs/_static/underscore-1.13.1.js:1623
Function
kn
(n)
docs/_static/underscore.js:6
Function
l
(e)
docs/_static/material-design-lite-1.3.0/material.min.js:8
Function
last
(array, n, guard)
docs/_static/underscore-1.13.1.js:1686
Function
later
()
docs/_static/underscore-1.13.1.js:1104
Function
login
用户登录并获取访问令牌
web_project/backend/app/api/v1/endpoints/auth.py:52
Function
m
(e)
docs/_static/material-design-lite-1.3.0/material.min.js:9
Function
mae
计算 Mean Absolute Error(MAE)。 Args: predictions: 预测值 actuals: 实际值 Returns: float: MAE
src/funrec/evaluation/metrics.py:17
Function
mapObject
(obj, iteratee, context)
docs/_static/underscore-1.13.1.js:761
Method
max_consecutive
(self)
web_project/backend/online/reranking/dispersion.py:59
Function
me
()
docs/_static/jquery.js:2
Function
mean_loss
(y_true, y_pred)
src/funrec/training/loss.py:43
Function
memoize
(func, hasher)
docs/_static/underscore-1.13.1.js:1071
Method
movie_genre_map
从召回服务获取电影类型映射
web_project/backend/online/pipeline.py:162
Method
movie_genre_map
(self)
web_project/backend/online/recall/service.py:178
Function
movielens_classical_preprocess
ml-latest-small数据预处理,用于经典推荐模型。 Args: input_path: ml-latest-small目录路径,包含ratings.csv output_path: 输出目录路径 rating_thresh
src/funrec/data/preprocess/movielens.py:837
Function
movielens_dense_preprocess
(input_path: Path, output_path: Path)
src/funrec/data/preprocess/movielens.py:429
Function
movielens_recall_pos_neg_preprocess
(input_path: Path, output_path: Path)
src/funrec/data/preprocess/movielens.py:647
Function
movielens_recall_preprocess
(input_path: Path, output_path: Path)
src/funrec/data/preprocess/movielens.py:485
Function
movielens_sequence_preprocess
(input_path: Path, output_path: Path)
src/funrec/data/preprocess/movielens.py:230
Function
movielens_youtubednn_preprocess
(input_path: Path, output_path: Path)
src/funrec/data/preprocess/movielens.py:12
Method
name
策略名称,用于日志和调试。
web_project/backend/online/cold_start/base.py:21
Method
name
返回重排序策略的名称。
web_project/backend/online/reranking/base.py:40
Method
name
(self)
web_project/backend/online/reranking/dispersion.py:55
Method
name
返回该精排策略的名称。
web_project/backend/online/ranking/base.py:43
Method
name
(self)
web_project/backend/online/ranking/deepfm.py:31
Method
name
(self)
web_project/backend/online/ranking/deepfm.py:194
Function
noop
()
docs/_static/underscore-1.13.1.js:774
Function
o
(t)
docs/_static/material-design-lite-1.3.0/material.min.js:8
← previous
next →
901–1,000 of 1,084, ranked by callers