MCPcopy Create free account

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

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

↓ 1 callersFunctionhe
(n)
docs/_static/jquery.js:2
↓ 1 callersFunctionhighlight
(node, addItems)
docs/_static/_sphinx_javascript_frameworks_compat.js:62
↓ 1 callersMethodindex_movie
索引单部电影
web_project/backend/app/services/elasticsearch_service.py:116
↓ 1 callersFunctionindex_movies
将数据库中的所有电影索引到 Elasticsearch
web_project/backend/scripts/index_movies_elasticsearch.py:26
↓ 1 callersFunctioningest_genres
从电影数据中提取唯一类型并导入到类型表
web_project/backend/scripts/ingest_data_to_database.py:390
↓ 1 callersFunctioningest_movies
导入电影数据(关联 IMDb 评分)
web_project/backend/scripts/ingest_data_to_database.py:94
↓ 1 callersFunctioningest_name_basics
导入人物详情(演员、导演等)
web_project/backend/scripts/ingest_data_to_database.py:249
↓ 1 callersFunctioningest_ratings
导入评分数据
web_project/backend/scripts/ingest_data_to_database.py:192
↓ 1 callersFunctioningest_title_akas
导入电影别名(不同地区/语言)
web_project/backend/scripts/ingest_data_to_database.py:356
↓ 1 callersFunctioningest_title_crew
导入每部电影的导演和编剧
web_project/backend/scripts/ingest_data_to_database.py:288
↓ 1 callersFunctioningest_title_principals
导入主要演职人员(主演)
web_project/backend/scripts/ingest_data_to_database.py:324
↓ 1 callersFunctioningest_title_ratings
导入 IMDb 电影评分
web_project/backend/scripts/ingest_data_to_database.py:57
↓ 1 callersFunctioningest_users
导入用户数据
web_project/backend/scripts/ingest_data_to_database.py:151
↓ 1 callersFunctioninitial
(array, n, guard)
docs/_static/underscore-1.13.1.js:1665
↓ 1 callersFunctioninvert
(obj)
docs/_static/underscore-1.13.1.js:556
↓ 1 callersFunctionisBoolean
(obj)
docs/_static/underscore-1.13.1.js:104
↓ 1 callersFunctionisMatch
(object, attrs)
docs/_static/underscore-1.13.1.js:307
↓ 1 callersFunctionisUndefined
(obj)
docs/_static/underscore-1.13.1.js:99
↓ 1 callersMethodis_cold_start
检查用户是否处于冷启动模式
web_project/backend/online/cold_start/service.py:71
↓ 1 callersFunctionload_metadata
从 pickle 文件加载元数据字典
web_project/backend/scripts/ingest_data_to_database.py:47
↓ 1 callersFunctionload_raw_data
加载原始 MovieLens 数据文件
web_project/backend/offline/feature/preprocess_ranking.py:32
↓ 1 callersMethodload_resources
(self)
web_project/backend/online/recall/resource_manager.py:79
↓ 1 callersFunctionlogin
(email, password)
web_project/frontend/src/stores/auth.js:39
↓ 1 callersFunctionlogout
()
web_project/frontend/src/stores/auth.js:103
↓ 1 callersFunctionlt
(o,e,t)
docs/_static/jquery.js:2
↓ 1 callersFunctionmain
主导入流程
web_project/backend/scripts/ingest_data_to_database.py:475
↓ 1 callersFunctionmain
主函数
web_project/backend/scripts/index_movies_elasticsearch.py:143
↓ 1 callersFunctionmain
()
web_project/backend/offline/pipeline.py:15
↓ 1 callersFunctionmatcherFromGroupMatchers
( elementMatchers, setMatchers )
docs/_static/jquery-3.6.0.js:2671
↓ 1 callersFunctionmatcherFromTokens
( tokens )
docs/_static/jquery-3.6.0.js:2608
↓ 1 callersFunctionmerge_raw_data
拼接原始样本(用户日志+user和item的基础特征+其他特征)
src/funrec/data/preprocess/movielens.py:59
↓ 1 callersFunctionmightThrow
()
docs/_static/jquery-3.6.0.js:3756
↓ 1 callersFunctionmixin
(obj)
docs/_static/underscore-1.13.1.js:1843
↓ 1 callersFunctionmr
(n,r,t)
docs/_static/underscore.js:6
↓ 1 callersFunctionmultipleContexts
( selector, contexts, results )
docs/_static/jquery-3.6.0.js:2478
↓ 1 callersFunctionndcg_at_k
计算当前用户 NDCG@k 。 Args: recommended_items: 推荐物品ID列表 relevant_items: 实际物品ID列表 k: 推荐数量,默认10 Returns: float:
src/funrec/evaluation/metrics.py:123
↓ 1 callersFunctionne
(e,t)
docs/_static/jquery.js:2
↓ 1 callersFunctionobjectSearchCallback
(prefix, match)
docs/_static/searchtools.js:378
↓ 1 callersFunctionon
(n,r,t,e)
docs/_static/underscore.js:6
↓ 1 callersFunctionot
()
docs/_static/jquery.js:2
↓ 1 callersFunctionpad_and_truncate
取一个列表,保留最后k个元素,左填充到长度k
src/funrec/data/preprocess/kuairand.py:480
↓ 1 callersFunctionpairwise_feature_interactions
Args: group_feature: B x N x D drop_rate: dropout rate Returns: B x num_interactions x D
src/funrec/models/utils.py:313
↓ 1 callersFunctionparse_din_feature_columns
(feature_columns)
src/funrec/models/utils.py:340
↓ 1 callersFunctionparse_group_feature_columns
解析特征列,按组分类 Args: feature_columns (list): 特征列列表 Returns: dict: 特征列按组分类的字典
src/funrec/models/utils.py:71
↓ 1 callersFunctionpreprocess_samples
将样本中的特征都映射成索引,有数值特征的可以在这个阶段进行分桶
src/funrec/data/preprocess/movielens.py:112
↓ 1 callersMethodpreprocess_user
预处理用户特征,构建模型输入
web_project/backend/online/recall/youtubednn.py:14
↓ 1 callersFunctionprocess_features
处理特征 Returns: df_merged: 合并后的特征 DataFrame user_vocab: 用户特征词表 movie_vocab: 电影特征词表 df_users: 处理后的用户 DataFr
web_project/backend/offline/feature/preprocess_retrieval.py:30
↓ 1 callersFunctionprocess_features_for_ranking
为精排模型处理特征 Returns: df_merged: 包含所有特征和标签的 DataFrame user_vocab: 用户特征词表 movie_vocab: 电影特征词表
web_project/backend/offline/feature/preprocess_ranking.py:45
↓ 1 callersFunctionpropFilter
( props, specialEasing )
docs/_static/jquery-3.6.0.js:7501
↓ 1 callersFunctionpulse
()
docs/_static/searchtools.js:195
↓ 1 callersMethodrank
为用户对候选物品进行排序。 Args: user_features: 包含用户特征的字典 - user_id: 用户标识符 - gender, age, occ
web_project/backend/online/ranking/base.py:13
↓ 1 callersMethodrank
为用户对候选物品进行排序 Args: user_features: 用户特征字典,包含: - user_id: 用户标识符 - gender, age, occ
web_project/backend/online/ranking/service.py:65
↓ 1 callersMethodrank_with_item_features
使用补充的物品特征对候选进行排序 此方法在排序前为候选补充额外的物品特征, 可以提高排序质量。 Args: user_features: 用户特征字典
web_project/backend/online/ranking/service.py:112
↓ 1 callersMethodrecall
执行召回 Args: user_context: 包含用户特征和历史的字典 k: 要召回的物品数量 Returns: 召回物品列表(包
web_project/backend/online/recall/base.py:14
↓ 1 callersMethodrecommend
生成冷启动推荐 运行适用的策略并合并结果。策略优先级: 1. 如果设置了 preferred_genres:PreferredGenreStrategy(80% 权重) 2. PopularRecentStrateg
web_project/backend/online/cold_start/service.py:75
↓ 1 callersMethodrecommend
协调多通道召回
web_project/backend/online/recall/service.py:150
↓ 1 callersMethodrecommend
使用直接计算的优化推荐。 基于物品的协同过滤:推荐与用户已交互物品相似的物品。 参数: ----------- user_id : 原始用户ID n_recommendations : int, 推荐
src/funrec/models/swing.py:197
↓ 1 callersFunctionreducer
(obj, iteratee, memo, initial)
docs/_static/underscore-1.13.1.js:1358
↓ 1 callersMethodrelative_position_bias
相对位置偏置
src/funrec/models/hstu.py:162
↓ 1 callersMethodrerank
重排序物品以优化特定目标。 Args: items: 精排阶段的排序物品列表 每个物品包含: - movie_id: 物品标识符
web_project/backend/online/reranking/base.py:15
↓ 1 callersFunctionrest
(array, n, guard)
docs/_static/underscore-1.13.1.js:1680
↓ 1 callersFunctionrn
(n,r)
docs/_static/underscore.js:6
↓ 1 callersFunctionrunWhenDOMLoaded
docs/_static/d2l.js:71
↓ 1 callersFunctionsafeActiveElement
()
docs/_static/jquery-3.6.0.js:5119
↓ 1 callersFunctionsample
(obj, n, guard)
docs/_static/underscore-1.13.1.js:1520
↓ 1 callersFunctionschedule
()
docs/_static/jquery-3.6.0.js:7274
↓ 1 callersFunctionselectTab
* Auxiliary method to programmatically select a tab in the UI.
docs/_static/material-design-lite-1.3.0/material.js:3578
↓ 1 callersFunctionsetMatcher
( preFilter, selector, matcher, postFilter, postFinder, postSelector )
docs/_static/jquery-3.6.0.js:2508
↓ 1 callersFunctionsetPositiveNumber
( _elem, value, subtract )
docs/_static/jquery-3.6.0.js:6695
↓ 1 callersMethodset_movie_genre_map
(self, movies)
web_project/backend/online/recall/service.py:181
↓ 1 callersFunctionsortedIndex
(array, obj, iteratee, context)
docs/_static/underscore-1.13.1.js:1262
↓ 1 callersFunctionsplit_table_by_columns
将宽表格按列分割成多个较小的表格。 参数: metrics: 指标名称 -> 数值的映射 max_cols: 每个子表格的最大列数(包括固定列) fixed_cols: 需要在每个子表格中重复显示的固定列数(从左开始) 返
src/funrec/utils.py:130
↓ 1 callersFunctionsplit_train_test
将数据划分为训练集和测试集 Args: df_final: 包含所有样本的 DataFrame test_ratio: 测试集比例 by_time: 如果为 True,使用时间划分;否则随机划分 Retur
web_project/backend/offline/feature/preprocess_ranking.py:314
↓ 1 callersFunctionsquash
(inputs)
src/funrec/models/layers.py:7
↓ 1 callersMethodtime_interval_bias
时间间隔偏置
src/funrec/models/hstu.py:184
↓ 1 callersFunctiontoggler
(el)
docs/_static/doctools.js:85
↓ 1 callersFunctiontrain_doc2vec_model
(tagged_data, num_epochs=10)
src/funrec/data/preprocess/movielens.py:449
↓ 1 callersFunctionuniq
(array, isSorted, iteratee, context)
docs/_static/underscore-1.13.1.js:1722
↓ 1 callersMethodupdate_movie
更新索引中的电影
web_project/backend/app/services/elasticsearch_service.py:298
↓ 1 callersFunctionupdate_movie_statistics
从评分表更新电影统计数据(avg_rating、rating_count)
web_project/backend/scripts/ingest_data_to_database.py:222
↓ 1 callersFunctionupgradeDomInternal
* Searches existing DOM for elements of our component type and upgrades them * if they have not already been upgraded. * * @param {string=} o
docs/_static/material-design-lite-1.3.0/material.js:177
↓ 1 callersFunctionut
(e,t,n)
docs/_static/jquery.js:2
↓ 1 callersFunctionvendorPropName
( name )
docs/_static/jquery-3.6.0.js:6654
↓ 1 callersFunctionverify_password
验证密码是否与哈希值匹配
web_project/backend/app/core/security.py:11
↓ 1 callersFunctionw
(n)
docs/_static/underscore.js:6
↓ 1 callersFunctionwn
(n)
docs/_static/underscore.js:6
↓ 1 callersFunctionz
(t)
docs/_static/sphinx_materialdesign_theme.js:484
↓ 1 callersFunctionzr
(n,r,t)
docs/_static/underscore.js:6
Function$
(n)
docs/_static/underscore.js:6
FunctionAe
(e)
docs/_static/sphinx_materialdesign_theme.js:491
FunctionB
()
docs/_static/jquery.js:2
FunctionBn
(n)
docs/_static/underscore.js:6
FunctionC
(e)
docs/_static/material-design-lite-1.3.0/material.min.js:8
FunctionData
()
docs/_static/jquery-3.6.0.js:4236
FunctionDe
(e,r)
docs/_static/sphinx_materialdesign_theme.js:491
FunctionDe
(e)
docs/_static/jquery.js:2
FunctionHr
(n)
docs/_static/underscore.js:6
FunctionI
(e)
docs/_static/sphinx_materialdesign_theme.js:4
FunctionI
(e)
docs/_static/material-design-lite-1.3.0/material.min.js:9
FunctionIdentity
( v )
docs/_static/jquery-3.6.0.js:3652
← previousnext →501–600 of 1,084, ranked by callers