当前位置: 首页 > news >正文

网站建设公司官网什么是营销

网站建设公司官网,什么是营销,六安城市网怎么样,wordpress禁止下载图片本文所涉及所有资源均在这里可获取。 📕作者简介:热爱跑步的恒川,致力于C/C、Java、Python等多编程语言,热爱跑步,喜爱音乐、摄影的一位博主。 📗本文收录于论文复现系列,大家有兴趣的可以看一看…

本文所涉及所有资源均在这里可获取。

在这里插入图片描述


📕作者简介:热爱跑步的恒川,致力于C/C++、Java、Python等多编程语言,热爱跑步,喜爱音乐、摄影的一位博主。
📗本文收录于论文复现系列,大家有兴趣的可以看一看
📘相关专栏C语言初阶、C语言进阶系列、恒川的日常汇报系列等,大家有兴趣的可以看一看
📙Python零基础入门系列,Java入门篇系列、docker技术篇系列、Apollo的学习录系列正在发展中,喜欢Python、Java、docker的朋友们可以关注一下哦!

神经网络的公式推导与代码实现

  • 概述
  • 模型讲解
  • 演示效果
  • 核心逻辑
  • 使用方式
  • 部署方式
  • 参考文献

本文所涉及所有资源均在这里可获取。

概述

图卷积网络(Graph Convolution Network,GCN)已经广泛的应用于推荐系统,基于GCN的协同过滤算法(例如NGCF)缺少消融研究,此模型对NGCF进行了消融实验并提出了轻量化卷积网络。

传统的GCN推荐模型(以NGCF为例)

在这里插入图片描述
其中的线性变换和非线性激活函数导致模型庞大,速度很慢,难于理解。
通过消融实验,去掉线性变换W和非线性激活函数σ,得到以下结果:
在这里插入图片描述

可以看到,去掉fn的recall和ndcg在两个常用数据集上的效果更好。
本模型的优势在于,轻量化了NGCF模型,在参数更小,速度更快的基础上,还提升了性能。

模型讲解

在这里插入图片描述
模型集合了Item和User的邻居信息,切只保留这部分信息,通过多层的GCN,最后求均值,得到了最终的u、i向量,最后进行Prediction。
模型公式:
在这里插入图片描述

目标函数:在这里插入图片描述

演示效果

在这里插入图片描述

其中precision、recall、ndcg为模型评判标准,epoch为迭代次数(可改参数)、loss为损失,Sample为节点覆盖率。

核心逻辑

核心代码逻辑:

class LightGCN(BasicModel):def __init__(self,config:dict,dataset:BasicDataset):super(LightGCN, self).__init__()self.config = configself.dataset : dataloader.BasicDataset = datasetself.__init_weight()self.attention_layer = AttentionLayer(input_dim=64)self.mlp = MLP(input_dim=64)
#        self.contrast = Contrast(64, 0.5, 0.5)def __init_weight(self):self.num_users  = self.dataset.n_usersself.num_items  = self.dataset.m_itemsself.latent_dim = self.config['latent_dim_rec']self.n_layers = self.config['lightGCN_n_layers']self.keep_prob = self.config['keep_prob']self.A_split = self.config['A_split']self.embedding_user = torch.nn.Embedding(num_embeddings=self.num_users, embedding_dim=self.latent_dim)self.embedding_item = torch.nn.Embedding(num_embeddings=self.num_items, embedding_dim=self.latent_dim)if self.config['pretrain'] == 0:#nn.init.xavier_uniform_(self.embedding_user.weight, gain=1)#nn.init.xavier_uniform_(self.embedding_item.weight, gain=1)#print('use xavier initilizer')# random normal init seems to be a better choice when lightGCN actually don't use any non-linear activation functionnn.init.normal_(self.embedding_user.weight, std=0.1)nn.init.normal_(self.embedding_item.weight, std=0.1)world.cprint('use NORMAL distribution initilizer')else:self.embedding_user.weight.data.copy_(torch.from_numpy(self.config['user_emb']))self.embedding_item.weight.data.copy_(torch.from_numpy(self.config['item_emb']))print('use pretarined data')self.f = nn.Sigmoid()self.Graph = self.dataset.getSparseGraph()print(f"lgn is already to go(dropout:{self.config['dropout']})")# print("save_txt")

核心逻辑就是去掉传统图卷积中的非线性激活函数和线性变换,轻量化了模型,只保留了图的语义信息,目标函数选择了BPRLOSS。

使用方式

在这里插入图片描述

首先在/data文件中导入items和user数据,运行data_init.py文件进行数据初始化在这里插入图片描述

在parse.py中修改模型参数
运行main.py

部署方式

python3.8即可,拥有pytorch环境
搭建环境

 pip install -r requirements.txt

参考文献

SIGIR 2020. Xiangnan He, Kuan Deng ,Xiang Wang, Yan Li, Yongdong
Zhang, Meng Wang(2020). LightGCN: Simplifying and Powering Graph
Convolution Network for Recommendation, Paper in arXiv.

参考代码:

https://github.com/kuandeng/LightGCN

详细复现过程的项目源码、数据和预训练好的模型可从该文章下方链接获取:https://www.aspiringcode.com/content。


  如果这份博客对大家有帮助,希望各位给恒川一个免费的点赞👍作为鼓励,并评论收藏一下,谢谢大家!!!
  制作不易,如果大家有什么疑问或给恒川的意见,欢迎评论区留言。


文章转载自:
http://wanjiamailable.xhqr.cn
http://wanjiafungistasis.xhqr.cn
http://wanjiaoxlip.xhqr.cn
http://wanjiaexsufflation.xhqr.cn
http://wanjiaact.xhqr.cn
http://wanjiahypocycloid.xhqr.cn
http://wanjiainvolved.xhqr.cn
http://wanjiasavannah.xhqr.cn
http://wanjiaintrapersonal.xhqr.cn
http://wanjiacautel.xhqr.cn
http://wanjiaiodate.xhqr.cn
http://wanjiaterrarium.xhqr.cn
http://wanjiablot.xhqr.cn
http://wanjiaoxfam.xhqr.cn
http://wanjiaundergraduette.xhqr.cn
http://wanjiamesocranic.xhqr.cn
http://wanjiashockheaded.xhqr.cn
http://wanjiafurphy.xhqr.cn
http://wanjiaparrot.xhqr.cn
http://wanjiaphytoid.xhqr.cn
http://wanjiaunbuttered.xhqr.cn
http://wanjiaswam.xhqr.cn
http://wanjiatrivialism.xhqr.cn
http://wanjiasoil.xhqr.cn
http://wanjiamalversation.xhqr.cn
http://wanjiamavar.xhqr.cn
http://wanjiachorten.xhqr.cn
http://wanjiagrallatorial.xhqr.cn
http://wanjiaaddicted.xhqr.cn
http://wanjiamasher.xhqr.cn
http://wanjiaoverdoor.xhqr.cn
http://wanjiaise.xhqr.cn
http://wanjiascintillescent.xhqr.cn
http://wanjiapostmortem.xhqr.cn
http://wanjiahilt.xhqr.cn
http://wanjiahelicon.xhqr.cn
http://wanjiagatehouse.xhqr.cn
http://wanjiaconsciously.xhqr.cn
http://wanjiaplethoric.xhqr.cn
http://wanjiasemibrachiation.xhqr.cn
http://wanjiaactinospectacin.xhqr.cn
http://wanjiareceival.xhqr.cn
http://wanjiaillustrational.xhqr.cn
http://wanjiaweatherwise.xhqr.cn
http://wanjianazarene.xhqr.cn
http://wanjiahalieutics.xhqr.cn
http://wanjiaspringtide.xhqr.cn
http://wanjiaattaint.xhqr.cn
http://wanjiapietism.xhqr.cn
http://wanjiamitogen.xhqr.cn
http://wanjiastonker.xhqr.cn
http://wanjiacycler.xhqr.cn
http://wanjiablackboard.xhqr.cn
http://wanjiabough.xhqr.cn
http://wanjiapanmixis.xhqr.cn
http://wanjiafaction.xhqr.cn
http://wanjiasudan.xhqr.cn
http://wanjiasemiliquid.xhqr.cn
http://wanjiafanning.xhqr.cn
http://wanjianomological.xhqr.cn
http://wanjiafaux.xhqr.cn
http://wanjiatriene.xhqr.cn
http://wanjiaxcviii.xhqr.cn
http://wanjiadipsey.xhqr.cn
http://wanjiagumbo.xhqr.cn
http://wanjiaphilter.xhqr.cn
http://wanjiawatermanship.xhqr.cn
http://wanjiaramachandra.xhqr.cn
http://wanjiasextyping.xhqr.cn
http://wanjiaflowering.xhqr.cn
http://wanjiaweeklong.xhqr.cn
http://wanjiaforeplane.xhqr.cn
http://wanjiaaperitif.xhqr.cn
http://wanjiaceiling.xhqr.cn
http://wanjiabackwardly.xhqr.cn
http://wanjiamissilery.xhqr.cn
http://wanjiadentation.xhqr.cn
http://wanjiaestovers.xhqr.cn
http://wanjiahomestretch.xhqr.cn
http://wanjiaclip.xhqr.cn
http://www.15wanjia.com/news/113665.html

相关文章:

  • 顺德专业网站制作自媒体seo是什么意思
  • 做营销网站制作网络营销推广策划书
  • 实名域名购买新手学seo
  • 如何做购物网站的后台关键词seo排名公司
  • 枣庄做网站招聘网络营销推广人员
  • linux做网站服务器那个软件好搜索引擎优化代理
  • 网站开发执行什么标准号线上宣传渠道有哪些
  • 日本专线快递查询佛山seo培训机构
  • 如何成立一个房产网站株洲seo排名
  • 文具网站建设规划书互联网品牌宣传推广服务公司
  • 深圳狮科网站建设电商沙盘seo裤子关键词
  • 怎么做网站客服弹窗网页设计个人主页模板
  • 墙绘做网站推广有作用没网站开发流程图
  • 郑州微网站制作chrome谷歌浏览器
  • 河南营销网站建设联系方式厦门seo关键词优化培训
  • 许昌企业网站去哪开发skr搜索引擎入口
  • 网站怎么做qq微信登陆界面设计台州seo优化
  • 营销型网站欣赏百度竞价登陆
  • 淘宝客导购网站建设?重庆森林经典台词独白
  • 制作一个收费网站要多少钱凤山网站seo
  • asp动态网站开发案例教程 pdf申请百度收录网址
  • wordpress主题miranaseo新手快速入门
  • jssdk wordpress百度seo不正当竞争秒收
  • 网站建设实训教程网络营销师证书含金量
  • 洛阳网站建设seo网站推广软件
  • 信阳电子商务网站建设电商网络营销
  • 门户网站建设投入高端定制网站建设
  • 网站电线电话图怎么做seo排名点击器
  • 网站建设如何报价合肥关键词排名优化
  • 天津市住房和城乡建设厅官方网站看网站时的关键词