MCPcopy Create free account

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

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

Methodfit
使用用户-物品交互数据训练模型(带有0/1标签的CTR数据)。 参数: ----------- user_item_interactions : 元组列表 (user_id, item_id, label) 或 DataFrame
src/funrec/models/item_cf.py:41
Methodfit
使用用户-物品交互数据(带有0/1标签的CTR数据)训练模型。 参数: ----------- user_item_interactions : 元组列表 (user_id, item_id, label) 或 DataFrame
src/funrec/models/user_cf.py:41
Functionflatten
(array, depth)
docs/_static/underscore-1.13.1.js:1699
Functionfunescape
( escape, nonHex )
docs/_static/jquery-3.6.0.js:675
FunctiongetMovie
(movieId)
web_project/frontend/src/services/api.js:42
FunctiongetMovieCast
(movieId, limit = 10)
web_project/frontend/src/services/api.js:47
FunctiongetMovieCrew
(movieId)
web_project/frontend/src/services/api.js:52
FunctiongetMovies
(params = {})
web_project/frontend/src/services/api.js:32
FunctiongetPerson
(personId)
web_project/frontend/src/services/api.js:57
FunctiongetPopularMovies
(limit = 20)
web_project/frontend/src/services/api.js:37
FunctiongetPosterUrl
(movieId)
web_project/frontend/src/services/api.js:144
FunctiongetRecommendations
(userId, topK = 20)
web_project/frontend/src/services/api.js:67
FunctiongetStats
()
web_project/frontend/src/services/api.js:62
FunctiongetSuggestions
(query, limit = 10)
web_project/frontend/src/services/api.js:136
FunctiongetUserRating
(movieId)
web_project/frontend/src/services/api.js:111
Functionget_all_genres
获取所有可用的电影类型 - 用于电影偏好选择
web_project/backend/app/api/v1/endpoints/genres.py:15
Methodget_config
(self)
src/funrec/models/dsin.py:104
Methodget_config
(self)
src/funrec/models/layers.py:89
Methodget_config
(self)
src/funrec/models/layers.py:139
Methodget_config
获取层配置 返回层的配置参数,用于序列化和重建层。
src/funrec/models/layers.py:393
Methodget_config
返回层的配置字典。 Returns: dict: 配置字典。
src/funrec/models/layers.py:454
Methodget_config
(self)
src/funrec/models/layers.py:737
Methodget_config
(self)
src/funrec/models/hstu.py:448
Methodget_config
(self)
src/funrec/models/fm_recall.py:27
Methodget_config
(self)
src/funrec/models/fm_recall.py:56
Methodget_config
(self)
src/funrec/models/fm_recall.py:70
Methodget_config
(self)
src/funrec/models/fm_recall.py:85
Functionget_current_active_user
确保用户处于激活状态
web_project/backend/app/core/auth.py:64
Functionget_current_admin_user
获取当前管理员用户(需要超级用户权限)
web_project/backend/app/core/auth.py:71
Functionget_current_user
从 JWT 令牌获取当前认证用户
web_project/backend/app/core/auth.py:14
Functionget_current_user_profile
获取当前用户资料,包含偏好和历史记录
web_project/backend/app/api/v1/endpoints/users.py:28
Functionget_db
获取数据库会话的依赖注入函数
web_project/backend/app/database.py:23
Functionget_db
数据库会话依赖注入
web_project/backend/app/api/deps.py:7
Methodget_health_status
获取冷启动服务的健康状态
web_project/backend/online/cold_start/service.py:270
Methodget_health_status
获取重排序服务的健康状态
web_project/backend/online/reranking/service.py:166
Methodget_interaction_count
获取用户的交互次数。
web_project/backend/online/cold_start/detector.py:66
Functionget_movie
获取指定电影的详细信息
web_project/backend/app/api/v1/endpoints/movies.py:238
Functionget_movie_cast
获取指定电影的演员阵容
web_project/backend/app/api/v1/endpoints/movies.py:266
Functionget_movie_crew
获取指定电影的导演和编剧
web_project/backend/app/api/v1/endpoints/movies.py:318
Functionget_movies
获取分页电影列表,支持过滤条件
web_project/backend/app/api/v1/endpoints/movies.py:149
Functionget_person
获取人物详情(演员、导演等)
web_project/backend/app/api/v1/endpoints/people.py:14
Functionget_popular_movies
获取热门电影 - 基于 IMDb 评分和投票数
web_project/backend/app/api/v1/endpoints/movies.py:209
Functionget_statistics
获取数据库统计信息
web_project/backend/app/api/v1/endpoints/stats.py:14
Functionget_user_rating
获取当前用户对指定电影的评分
web_project/backend/app/api/v1/endpoints/ratings.py:143
Functionh
(e)
docs/_static/material-design-lite-1.3.0/material.min.js:8
Functionhandler
( event )
docs/_static/jquery-3.6.0.js:8821
Functionhas
(obj, path)
docs/_static/underscore-1.13.1.js:678
Functionhealth
推荐服务健康检查
web_project/backend/app/api/v1/endpoints/recommendations.py:207
Functionhealth_check
健康检查 - 用于监控服务状态
web_project/backend/app/api/v1/endpoints/health.py:17
Functionidentity
(value)
docs/_static/underscore-1.13.1.js:690
Functionie10IsDataView
(obj)
docs/_static/underscore-1.13.1.js:162
Functionintersection
(array)
docs/_static/underscore-1.13.1.js:1757
FunctionisElement
(obj)
docs/_static/underscore-1.13.1.js:109
FunctionisEmpty
(obj)
docs/_static/underscore-1.13.1.js:295
FunctionisEqual
(a, b)
docs/_static/underscore-1.13.1.js:476
FunctionisFinite$1
(obj)
docs/_static/underscore-1.13.1.js:192
FunctionisNaN$1
(obj)
docs/_static/underscore-1.13.1.js:197
FunctionisNull
(obj)
docs/_static/underscore-1.13.1.js:94
FunctionisTypedArray
(obj)
docs/_static/underscore-1.13.1.js:232
Methodis_cold_start
判断用户是否处于冷启动状态。 用户为冷启动状态的条件: - 没有交互历史,或 - 交互次数少于 `threshold` Args: user_features
web_project/backend/online/cold_start/detector.py:34
Methodis_cold_start_ready
检查冷启动处理是否可用
web_project/backend/online/pipeline.py:148
Methodis_ranking_ready
检查精排是否可用
web_project/backend/online/pipeline.py:138
Methodis_ready
检查流水线是否就绪可用
web_project/backend/online/pipeline.py:133
Methodis_ready
检查服务是否就绪
web_project/backend/online/cold_start/service.py:62
Methodis_ready
检查策略是否准备好服务。
web_project/backend/online/reranking/base.py:45
Methodis_ready
检查重排序服务是否就绪
web_project/backend/online/reranking/service.py:59
Methodis_ready
检查策略是否就绪可用。
web_project/backend/online/ranking/base.py:48
Methodis_ready
检查资源是否已加载并就绪。
web_project/backend/online/ranking/resource_manager.py:232
Methodis_ready
检查精排服务是否就绪
web_project/backend/online/ranking/service.py:56
Methodis_ready
(self)
web_project/backend/online/ranking/deepfm.py:35
Methodis_reranking_ready
检查重排序是否可用
web_project/backend/online/pipeline.py:143
FunctionkeyInObj
(value, key, obj)
docs/_static/underscore-1.13.1.js:1623
Functionkn
(n)
docs/_static/underscore.js:6
Functionl
(e)
docs/_static/material-design-lite-1.3.0/material.min.js:8
Functionlast
(array, n, guard)
docs/_static/underscore-1.13.1.js:1686
Functionlater
()
docs/_static/underscore-1.13.1.js:1104
Functionlogin
用户登录并获取访问令牌
web_project/backend/app/api/v1/endpoints/auth.py:52
Functionm
(e)
docs/_static/material-design-lite-1.3.0/material.min.js:9
Functionmae
计算 Mean Absolute Error(MAE)。 Args: predictions: 预测值 actuals: 实际值 Returns: float: MAE
src/funrec/evaluation/metrics.py:17
FunctionmapObject
(obj, iteratee, context)
docs/_static/underscore-1.13.1.js:761
Methodmax_consecutive
(self)
web_project/backend/online/reranking/dispersion.py:59
Functionme
()
docs/_static/jquery.js:2
Functionmean_loss
(y_true, y_pred)
src/funrec/training/loss.py:43
Functionmemoize
(func, hasher)
docs/_static/underscore-1.13.1.js:1071
Methodmovie_genre_map
从召回服务获取电影类型映射
web_project/backend/online/pipeline.py:162
Methodmovie_genre_map
(self)
web_project/backend/online/recall/service.py:178
Functionmovielens_classical_preprocess
ml-latest-small数据预处理,用于经典推荐模型。 Args: input_path: ml-latest-small目录路径,包含ratings.csv output_path: 输出目录路径 rating_thresh
src/funrec/data/preprocess/movielens.py:837
Functionmovielens_dense_preprocess
(input_path: Path, output_path: Path)
src/funrec/data/preprocess/movielens.py:429
Functionmovielens_recall_pos_neg_preprocess
(input_path: Path, output_path: Path)
src/funrec/data/preprocess/movielens.py:647
Functionmovielens_recall_preprocess
(input_path: Path, output_path: Path)
src/funrec/data/preprocess/movielens.py:485
Functionmovielens_sequence_preprocess
(input_path: Path, output_path: Path)
src/funrec/data/preprocess/movielens.py:230
Functionmovielens_youtubednn_preprocess
(input_path: Path, output_path: Path)
src/funrec/data/preprocess/movielens.py:12
Methodname
策略名称,用于日志和调试。
web_project/backend/online/cold_start/base.py:21
Methodname
返回重排序策略的名称。
web_project/backend/online/reranking/base.py:40
Methodname
(self)
web_project/backend/online/reranking/dispersion.py:55
Methodname
返回该精排策略的名称。
web_project/backend/online/ranking/base.py:43
Methodname
(self)
web_project/backend/online/ranking/deepfm.py:31
Methodname
(self)
web_project/backend/online/ranking/deepfm.py:194
Functionnoop
()
docs/_static/underscore-1.13.1.js:774
Functiono
(t)
docs/_static/material-design-lite-1.3.0/material.min.js:8
← previousnext →901–1,000 of 1,084, ranked by callers