Pytorch Geometric tutorial: Graph attention networks (GAT) implementation

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 พ.ย. 2024

ความคิดเห็น • 45

  • @tamago_roe
    @tamago_roe 2 ปีที่แล้ว +3

    I did encounter several TH-cam videos explaining the paper, but I am glad I bumped into your video with the actual implementation code explained so elegantly. Thanks for taking the time to share it.

  • @rsilveira79
    @rsilveira79 3 ปีที่แล้ว +6

    Thanks for putting together these PyTorch Geometric tutorials, really valuable material 👏

  • @aamm9129
    @aamm9129 2 ปีที่แล้ว +3

    guy was bored out of his mind 15:13 deep breath LOL. Thank you though I appreciate this work helps me.

  • @francescopuddu8619
    @francescopuddu8619 2 ปีที่แล้ว

    Great series so far. The explanations are extremely clean and balanced.

  • @sinaziaee9506
    @sinaziaee9506 2 ปีที่แล้ว +6

    Great Tutorial. Thanks Antonio. One quick question.Could you please explain how the normalization step is working in your code? it's the only ambiguous part for me. I would really appreciate your answers.

  • @expectopatronum2784
    @expectopatronum2784 4 หลายเดือนก่อน

    That was so nicely explained, thank you ❣

  • @jacanchaplais8083
    @jacanchaplais8083 3 ปีที่แล้ว +5

    These are really great! Is there any way that the typing sound could be removed in upcoming videos, though? I find it a little distracting.
    Thanks so much for these videos! :)

    • @94longa2112
      @94longa2112  3 ปีที่แล้ว +1

      Hello Jacan,
      I'm really happy you like our project.
      Unfortunately, we were at the beginning, and we did some mistakes in recording videos.
      However, if you proceed with the tutorials, they became a little bit better (in terms of audio)
      :)

  • @filippobargagna
    @filippobargagna 2 หลายเดือนก่อน

    GAT Damn these tutorials are good!

  • @naimahmednesaragi1630
    @naimahmednesaragi1630 3 ปีที่แล้ว +3

    Hi, Great video. However everybody talks about cora dataset, wherein nodes and edges can be easily defined.
    My query is how can we perform node classification for data comprising of ECG signal,or tabular data with M observations and N features or say Images. How to begin with construction of graph for such datasets , defining nodes, then construction of graph's?

    • @94longa2112
      @94longa2112  3 ปีที่แล้ว +3

      Hello,
      I think it is a really good idea!
      We will consider to do a talk regarding what you are talking about!
      Thanks

    • @naimahmednesaragi1630
      @naimahmednesaragi1630 3 ปีที่แล้ว +1

      @@94longa2112 looking forward to hearing from you. Thanks ✌️🙏

    • @gulabpatel1480
      @gulabpatel1480 3 ปีที่แล้ว

      @@94longa2112 Yes please do make a video or at least provide some help on how to convert tabular data into graph format. Thank you so much for providing such a high value contents.

  • @josephsylvan6511
    @josephsylvan6511 3 ปีที่แล้ว +1

    ​@Antonio Longa Have you checked out the DropEdge mechanism to make the GNN's go deep? If yes, could you please make a tutorial or explain the mechanism behind it.

    • @94longa2112
      @94longa2112  3 ปีที่แล้ว +1

      Thanks, for the suggestion. We will consider it :)

  • @tsongwong2370
    @tsongwong2370 ปีที่แล้ว

    Great Tutorial!

  • @akashdutta3656
    @akashdutta3656 ปีที่แล้ว

    In pytorch geometric, when should I use a tuple as the in_channel? what exactly is the source and destination dimension in in_channels that the pytorch documents refer to?

  • @congqi8829
    @congqi8829 2 ปีที่แล้ว

    @ 21:57, may be the 'int' method should be 'init'? Since the initialization should be defined at the __init__ function.

  • @liujxing
    @liujxing 3 ปีที่แล้ว

    Thanks for these nice tuotials!

  • @carloaironi5929
    @carloaironi5929 3 ปีที่แล้ว +1

    34:53 I think it's a bit difficult to understand why you use -9e15 as mask value, if you don't explain that the attention matrix has to be softmaxed, so a such BIG number will be squished to zero. Don't you think it's better to mask the attention matrix AFTER the softmax, with the simple element-wise multiplication with adj?
    Anyway, very interesting presentation!

    • @igormorgado
      @igormorgado ปีที่แล้ว +1

      -9e15 is a small number. -9000000000000000 (if I counted correctly 15 zeroes). That is different from 9e-15 that is very close to zero 0.000000000000009 (also 15 zeros) and still different than 9e15 9000000000000000 (15 zeros too) that is, in this case, a very large number. The idea of -9e15 is to express something like -infinity. The idea here is, since the number is very negative, when applying the softmax the probabilities will crunch to 0, therefore "ignoring" that fields. Masking after will make the softmax compute them in the normalization and the event probabilities after will not sum to 1. That is not what we want when talking about probabilities. In fact I think it should call `minus_infinity_vec`, or `minfty_vec` to short.

  • @arsalanmalek1044
    @arsalanmalek1044 2 ปีที่แล้ว

    Great Tutorial

  • @josephsylvan6511
    @josephsylvan6511 3 ปีที่แล้ว +1

    @11:26 , could you please explain what's "a", how did we get the 2Fx1? Is it randomly initialised weight vector?

    • @94longa2112
      @94longa2112  3 ปีที่แล้ว +3

      Yes, "a" is randomly initialised, then its weight is learned (in the backpropagation process)

  • @hyunsikyun1758
    @hyunsikyun1758 2 ปีที่แล้ว

    Hi it is really nice tutorial, but can I know specifically about masked attention?
    I think it is related to adjacency matrix, if a position of an adjacency matrix is 1 then it goes to e(what we calculated)
    if not, very little number(-9e+15).... Why we should use it?

  • @736939
    @736939 3 ปีที่แล้ว

    23:49 I don't get the normalization step, I checked the "degree" function that computes the degree of the edge_index and btw on the line "row, cow = edge_degree" we cannot get the row or the column, because this is the COO representation of the graph. Another thing that is strange is that after (somehow) you get deg_inv_sqrt, how it works for both source and target after you specify the [row] and [col] index in deg_inv_sqrt.??? Can you please explain the step 3 in more detailed way?

  • @kaym2332
    @kaym2332 3 ปีที่แล้ว +1

    Very nice tutorial!

  • @daekyoung_jung
    @daekyoung_jung 2 ปีที่แล้ว

    I have a question! Does GAT class provide an argument or function to turn skip-connection on for PPI dataset?

  • @guangxzhu4019
    @guangxzhu4019 3 ปีที่แล้ว +1

    Hello, thank you for your speech
    I'm new to this. I have a question
    What is the purpose of this method?

    • @94longa2112
      @94longa2112  3 ปีที่แล้ว

      Hi, the basic idea is to apply attention mecanism in the framework of GNN. It is a consolidated technique in the usual CNN, and this is a work that do the attention mechanism to GNN

  • @VasudevaK
    @VasudevaK 2 หลายเดือนก่อน

    Thanks for the efforts but who the heck is typing unmute?

  • @Rick_Mo
    @Rick_Mo ปีที่แล้ว

    good video,know many details about how to training GAT thk u

  • @N024PEMSEC
    @N024PEMSEC 5 หลายเดือนก่อน

    There is lot of background noise, which is really distracting.

  • @nastaranmarzban1419
    @nastaranmarzban1419 2 ปีที่แล้ว

    Hi hope you're doing well
    Is there any graph neural network architecture that receives multivariate dataset instead of graph-structured data as an input?
    I'll be very thankful if you answer me i really nead it
    Thanks in advanced

    • @igormorgado
      @igormorgado ปีที่แล้ว

      The idea of GNNs is to receive Graphs as inputs. If you will not use graphs as input, you do not need GNNs.

  • @KonstantinKlepikov
    @KonstantinKlepikov 2 ปีที่แล้ว +2

    next time ask the person who presses the buttons to leave - it makes it very difficult to listen

  • @sudiptapaul2825
    @sudiptapaul2825 2 ปีที่แล้ว +1

    How can I apply the GNN to a custom dataset? Can you give me any link for that?

    • @onewhoflutters4866
      @onewhoflutters4866 8 หลายเดือนก่อน

      Hello @sudiptapaul2825 I need this too. Did you find it?

    • @kaviyarasanpr
      @kaviyarasanpr 4 หลายเดือนก่อน

      @@onewhoflutters4866 I too need this how do we go about doing this ?

    • @onewhoflutters4866
      @onewhoflutters4866 4 หลายเดือนก่อน

      ​@@kaviyarasanpr Hello, Incorporating Edge Features into Graph Neural Networks for Country GDP Predictions (When I add the link it is deleted. a work in medium) I used here. data from world bank

  • @yuanyao1512
    @yuanyao1512 3 ปีที่แล้ว

    Hi Antonio, I have an error: cannot import name 'container_abcs' from 'torch._six' when I run " USE IT" in "tutorial3" code. Do you know how to solve it?

    • @94longa2112
      @94longa2112  3 ปีที่แล้ว

      I'll load a codelab so that you can execute notebooks directly online

  • @yunuscobanoglu6136
    @yunuscobanoglu6136 ปีที่แล้ว

    -9e15 is a very large negative number

  • @AndacDemir
    @AndacDemir 2 ปีที่แล้ว +1

    this is a terrible methodology and a more terrible explanation