原创 pytorch_geometric:message passing networks網絡

基類 message passing layers,其他卷積都是以這個類爲基類構建的。 描述:分層聚合每一個節點與周圍節點及關聯邊信息的通用函數。 所在位置:torch_geometric.nn.MessagePassing.

原创 DEEP GRAPH INFOMAX

ABSTRACT 從摘要得出本文特點: Deep Graph Infomax (DGI)是無監督學習; 用已有的GCNs來做:最大化鄰近表示(patch representation)與對應的高階圖摘要(high-level

原创 Batch Training

gradient descent Stochastic Gradient Descent, or SGD for short, is an optimization algorithm used to train machine

原创 pytorch_geometric:Planetoid數據集合

torch.utils.data.Dataset Dataset是數據集的抽象類,需要實現__getitem__ 和__len__: class Dataset(object): """An abstract class

原创 最小覆蓋子串例子解釋

記錄一個題: leetcode: 76. Minimum Window Substring Given a string S and a string T, find the minimum window in S which

原创 DGL中的GAT

DGL自帶的很多函數 看GAT之前,先看看DGL庫自帶的一些函數,遵循消息傳播範式,DGL自帶了很多消息函數和傳播函數,都在Builtin message passing functions中,總的來說,DGL由兩個api組成消息

原创 RGCN:record:

這裏的每一個實體的嵌入XiX_iXi​更新公式是把每一個關係rrr下的所有鄰居節點的嵌入XjX_jXj​乘以該關係矩陣Θr\Theta_rΘr​的正則化拿出來全部求和,然後與該實體本身的嵌入XiX_iXi​相加: 文章公式:

原创 轉發:ubuntu18.04安裝GPU驅動

ubuntu18.04安裝GPU驅動 https://blog.csdn.net/qq_32408773/article/details/84112166 https://medium.com/@zhanwenchen/inst

原创 訓練NN技巧

神經網絡的訓練依賴於問題和數據。Designing and training a network using backprop requires making many seemingly arbitrary choices su

原创 整流線型函數

ReLU:正的值會通過ReLU,所有的負值都設置爲零。 優點:ReLU的訓練速度比Tanh快得多,因爲它在1的時候沒有飽和。 LReLU :設置了一個參數,它用一個較低的斜率替換了[−∞,0][-∞,0][−∞,0]域中的

原创 pytorch_geometric:message passing networks

基類 message passing layers 描述:分層聚合每一個節點與周圍節點及關聯邊信息的通用函數。 xi′=γΘ(xi,□j∈N(i) ϕΘ(xi,xj,ei,j)), \mathbf{x}_i^{

原创 scipy.optimize.curve_fit 與 matplotlib.pyplot.hist 直方圖和密度圖

matplotlib.pyplot.hist( x, bins=10, range=None, normed=False, weights=None, cumulative=False, bottom

原创 torch: Invalid index in scatter at c:\a\w\1\s\windows\pytorch\aten\src\th\gene 解決

文檔瞭解:https://pytorch.org/docs/stable/tensors.html?highlight=scatter_#torch.Tensor.scatter_ scatter_(dim, index, src

原创 《MolGAN: An implicit generative model for small molecular graphs》瞭解

這篇論文研究的是化學分子(molecule),把其作爲一個無向圖看待;原子(atom)作爲對應分子圖上的一個節點(node),每個原子關聯着一個TTT維的獨熱向量xix_ixi​,表示原子的類別。 形式化一個分子的表示爲:屬性矩陣X

原创 tensorflow API:tf.map_fn

tf.map_fn( fn, elems, dtype=None, parallel_iterations=10, back_prop=True, swap_memory=False,