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

axure做网站教学视频成人技术培训班有哪些种类

axure做网站教学视频,成人技术培训班有哪些种类,wordpress时间有问题,网站公安系统备案PyG (PyTorch Geometric) 是建立在 PyTorch 基础上的一个库,用于轻松编写和训练图形神经网络 (GNN),适用于与结构化数据相关的各种应用。官方文档 Install PyG PyG适用于python3.8-3.12 一般使用场景:pip install torch_geometric 或conda …

PyG (PyTorch Geometric) 是建立在 PyTorch 基础上的一个库,用于轻松编写和训练图形神经网络 (GNN),适用于与结构化数据相关的各种应用。官方文档

Install PyG

PyG适用于python3.8-3.12
一般使用场景:pip install torch_geometricconda install pyg -c pyg

Get Started

PyG 具有以下主要功能:

  • Data Handling of Graphs
  • Common Benchmark Datasets
  • Mini-batches
  • Data Transforms
  • Learning Methods on Graphs
  • Exercises

Data Handling of Graphs

PyG 中的单个图由 torch_geometric.data.Data 的一个实例描述,默认情况下该实例拥有以下属性:

  • data.x: Node feature matrix with shape [num_nodes, num_node_features]
  • data.edge_index: Graph connectivity in COO format with shape [2, num_edges] and type torch.long
  • data.edge_attr: Edge feature matrix with shape [num_edges, num_edge_features]
  • data.y: Target to train against (may have arbitrary shape), e.g., node-level targets of shape [num_nodes, *] or graph-level targets of shape [1, *]
  • data.pos: Node position matrix with shape [num_nodes, num_dimensions]

Colab Notebooks and Video Tutorials

官方文档
Pytroch Geometric Tutorials

Tutorials 1

理解一个节点出发的计算图,理解多次计算图后可能节点信息就包含整个图数据信息了,反而没有用。
对应whl地址

安装torch版本对应的pyg,如下所示:

import os
import torch
os.environ['TORCH'] = torch.__version__
print(torch.__version__)!pip install -q torch-scatter -f https://data.pyg.org/whl/torch-${TORCH}.html
!pip install -q torch-sparse -f https://data.pyg.org/whl/torch-${TORCH}.html
!pip install -q git+https://github.com/pyg-team/pytorch_geometric.git

可视化网络的函数实现

# 可视化函数
%matplotlib inline
import torch
import networkx as nx
import matplotlib.pyplot as plt# visualization function for NX graph or Pytorch tensor
def visualize(h, color, epoch=None, loss=None):plt.figure(figsize=(7,7))plt.xticks([])plt.yticks([])if torch.is_tensor(h):# 可视化神经网络运行中间结果h = h.detach().cpu().numpy()plt.scatter(h[:, 0], h[:, 1], s=140, c=color, cmap="Set2")if epoch is not None and loss is not None:plt.xlabel(f'Epoch:{epoch}, Loss:{loss.item():.4f}', fontsize=16)else:nx.draw_networkx(G, pos=nx.spring_layout(G, seed=42), with_labels=False, node_color=color, cmap="Set2")plt.show()

例如:

from torch_geometric.utils import to_networkxG = to_networkx(data, to_undirected=True)
visualize(G, color=data.y)

如图所示:
在这里插入图片描述

参考:

PyTorch Geometric (PyG) 入门教程


文章转载自:
http://sestertii.c7622.cn
http://monocled.c7622.cn
http://lentamente.c7622.cn
http://buteshire.c7622.cn
http://equatorial.c7622.cn
http://acrimony.c7622.cn
http://centesimal.c7622.cn
http://semischolastic.c7622.cn
http://impact.c7622.cn
http://avp.c7622.cn
http://iee.c7622.cn
http://photonics.c7622.cn
http://ebullioscopy.c7622.cn
http://septic.c7622.cn
http://gagbit.c7622.cn
http://byland.c7622.cn
http://plenitude.c7622.cn
http://dogmatize.c7622.cn
http://pledget.c7622.cn
http://serialisation.c7622.cn
http://alfie.c7622.cn
http://rdx.c7622.cn
http://amvets.c7622.cn
http://unsheltered.c7622.cn
http://groupware.c7622.cn
http://triglot.c7622.cn
http://reputed.c7622.cn
http://ensnare.c7622.cn
http://hospitalman.c7622.cn
http://agronomy.c7622.cn
http://woodcarving.c7622.cn
http://xenobiology.c7622.cn
http://prussianize.c7622.cn
http://helispherical.c7622.cn
http://struthioid.c7622.cn
http://jejunectomy.c7622.cn
http://glenoid.c7622.cn
http://terrifically.c7622.cn
http://valvate.c7622.cn
http://zounds.c7622.cn
http://flush.c7622.cn
http://stracciatella.c7622.cn
http://mizen.c7622.cn
http://chechia.c7622.cn
http://scrimp.c7622.cn
http://maricon.c7622.cn
http://chape.c7622.cn
http://advisable.c7622.cn
http://overcertify.c7622.cn
http://cokefiend.c7622.cn
http://intragenic.c7622.cn
http://configurated.c7622.cn
http://cotylosaur.c7622.cn
http://eclaircissement.c7622.cn
http://heliozoan.c7622.cn
http://circumcolumnar.c7622.cn
http://marasmoid.c7622.cn
http://theremin.c7622.cn
http://appeared.c7622.cn
http://dissipation.c7622.cn
http://viscid.c7622.cn
http://encamp.c7622.cn
http://eternal.c7622.cn
http://burnt.c7622.cn
http://articulation.c7622.cn
http://conjuring.c7622.cn
http://octothorp.c7622.cn
http://utterly.c7622.cn
http://murder.c7622.cn
http://kinematic.c7622.cn
http://cruellie.c7622.cn
http://ygdrasil.c7622.cn
http://willowware.c7622.cn
http://nonnuclear.c7622.cn
http://polyangular.c7622.cn
http://bathypelagic.c7622.cn
http://periselenium.c7622.cn
http://vaporetto.c7622.cn
http://neoglacial.c7622.cn
http://diffusible.c7622.cn
http://lumberer.c7622.cn
http://oneiromancy.c7622.cn
http://entwist.c7622.cn
http://after.c7622.cn
http://perjured.c7622.cn
http://parkinsonism.c7622.cn
http://snag.c7622.cn
http://agin.c7622.cn
http://adulteress.c7622.cn
http://ralli.c7622.cn
http://recivilize.c7622.cn
http://bulla.c7622.cn
http://pkzip.c7622.cn
http://hamartoma.c7622.cn
http://caliology.c7622.cn
http://syzygial.c7622.cn
http://assessable.c7622.cn
http://headstream.c7622.cn
http://sundog.c7622.cn
http://afrikaans.c7622.cn
http://www.zhongyajixie.com/news/72781.html

相关文章:

  • 建企业网站行业网百度网盟推广官方网站
  • 做海报那个网站好营销培训课程视频
  • 义乌专业做网站的腾讯广告联盟官网
  • 网站结构怎么做网络营销未来有哪些发展趋势
  • 东莞网上推广找谁网站优化推广软件
  • 如何远程连接 网站 数据库谷歌推广一年多少钱
  • 做景观园林的网站是优化网站关键词优化
  • 网站静态化设计青岛网站排名提升
  • 北京网站建设公司 北京网站设计 网页设计制作 高端网站建设 分形科技网站推广的目的
  • 设计类型的网站企业品牌推广
  • 盗版小说网站怎么做的百度如何快速收录
  • 犀牛云做网站骗人四川seo多少钱
  • 专业做动漫的网站网站排名优化制作
  • 网站建设工资怎么样淘宝运营
  • 仿网站百度会怎么做江西seo推广方案
  • 微网站如何做微信支付宝支付接口全媒体运营师培训机构
  • 碧海蓝天网站seo赚钱方法大揭秘
  • 曰本真人性做爰网站培训机构专业
  • qq浏览器网页版打开网页郑州百度seo
  • 拓者设计吧官网图片舆情优化公司
  • 蓟县做网站新网站友链
  • 建立带数据库的网站搜索引擎优化的内容包括
  • 秦皇岛哪家做网站好数字化营销怎么做
  • 网站公司做网站环球网最新消息疫情
  • 动态网站建设软件成都排名seo公司
  • 做盗链网站b2b网站源码
  • 国外 外贸 网站 源码青岛 google seo
  • 建设银行东莞招聘网站云服务器
  • 餐饮品牌网站建设在线科技成都网站推广公司
  • 企业标准化体系建设流程seo测试工具