Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation and variable names in models #23

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

manoskary
Copy link
Owner

@manoskary manoskary commented Nov 28, 2024

Fixes #11

Add numpy doc style docstrings and uniform variable names in models.

  • graphmuse/loader/neighbor_loader.py

    • Change in_dim to input_channels in MuseNeighborLoader class.
    • Add numpy doc style docstrings to MuseNeighborLoader class methods.
    • Add examples to docstrings where needed in MuseNeighborLoader class.
  • graphmuse/nn/conv/gat.py

    • Change in_dim to input_channels in GraphAttentionLayer class.
    • Add numpy doc style docstrings to GraphAttentionLayer class methods.
    • Add examples to docstrings where needed in GraphAttentionLayer class.
  • graphmuse/nn/conv/gcn.py

    • Change in_dim to input_channels in GraphConv class.
    • Add numpy doc style docstrings to GraphConv class methods.
    • Add examples to docstrings where needed in GraphConv class.
  • graphmuse/nn/conv/ggru.py

    • Change in_features to input_channels in GGRU class.
    • Add numpy doc style docstrings to GGRU class methods.
    • Add examples to docstrings where needed in GGRU class.
  • graphmuse/nn/conv/metrical_conv.py

    • Change in_dim to input_channels in MetricalConvLayer class.
    • Add numpy doc style docstrings to MetricalConvLayer class methods.
    • Add examples to docstrings where needed in MetricalConvLayer class.
  • graphmuse/nn/conv/musgconv.py

    • Change in_channels to input_channels in MusGConv class.
    • Add numpy doc style docstrings to MusGConv class methods.
    • Add examples to docstrings where needed in MusGConv class.

Fixes #11

Add numpy doc style docstrings and uniform variable names in models.

* **graphmuse/loader/neighbor_loader.py**
  - Change `in_dim` to `input_channels` in `MuseNeighborLoader` class.
  - Add numpy doc style docstrings to `MuseNeighborLoader` class methods.
  - Add examples to docstrings where needed in `MuseNeighborLoader` class.

* **graphmuse/nn/conv/gat.py**
  - Change `in_dim` to `input_channels` in `GraphAttentionLayer` class.
  - Add numpy doc style docstrings to `GraphAttentionLayer` class methods.
  - Add examples to docstrings where needed in `GraphAttentionLayer` class.

* **graphmuse/nn/conv/gcn.py**
  - Change `in_dim` to `input_channels` in `GraphConv` class.
  - Add numpy doc style docstrings to `GraphConv` class methods.
  - Add examples to docstrings where needed in `GraphConv` class.

* **graphmuse/nn/conv/ggru.py**
  - Change `in_features` to `input_channels` in `GGRU` class.
  - Add numpy doc style docstrings to `GGRU` class methods.
  - Add examples to docstrings where needed in `GGRU` class.

* **graphmuse/nn/conv/metrical_conv.py**
  - Change `in_dim` to `input_channels` in `MetricalConvLayer` class.
  - Add numpy doc style docstrings to `MetricalConvLayer` class methods.
  - Add examples to docstrings where needed in `MetricalConvLayer` class.

* **graphmuse/nn/conv/musgconv.py**
  - Change `in_channels` to `input_channels` in `MusGConv` class.
  - Add numpy doc style docstrings to `MusGConv` class methods.
  - Add examples to docstrings where needed in `MusGConv` class.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/manoskary/graphmuse/issues/11?shareId=XXXX-XXXX-XXXX-XXXX).
@manoskary manoskary self-assigned this Nov 28, 2024
@manoskary manoskary requested a review from BaptisteHi November 28, 2024 11:22
@manoskary manoskary added the documentation Improvements or additions to documentation label Nov 28, 2024
@manoskary manoskary marked this pull request as ready for review November 29, 2024 13:20
-------
data_out : HeteroData
The sampled subgraph.
target_nodes : int
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it is just me but I would name it differently since there is a parameter with the same name, but another type in the sample_hetero_graph function.

graphmuse/nn/conv/gat.py Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation and extended readme
2 participants