Socket
Book a DemoInstallSign in
Socket

pymimir-rgnn

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pymimir-rgnn

Relational Graph Neural Network (R-GNN) package for Mimir based on PyTorch.

0.1.3
pipPyPI
Maintainers
1

Mimir-RGNN

Mimir-RGNN is a Python library that implements Relational Graph Neural Networks (R-GNN) using PyTorch and Mimir, offering a streamlined interface for building and using these networks.

API

One notable feature of Mimir-RGNN is its ability to define both input and output specifications directly during model construction. This allows for tailored configurations, as demonstrated below:

import pymimir_rgnn as rgnn

domain = ...
embedding_size = ...
num_layers = ...

config = rgnn.RelationalGraphNeuralNetworkConfig(
    domain=domain,
    input_specification=(rgnn.InputType.State, rgnn.InputType.Goal),
    output_specification=[('value', rgnn.OutputNodeType.Objects, rgnn.OutputValueType.Scalar)],
    embedding_size=embedding_size,
    num_layers=num_layers,
    message_aggregation=rgnn.AggregationFunction.HardMaximum
)

model = rgnn.RelationalGraphNeuralNetwork(config)

In this example, the configuration (RelationalGraphNeuralNetworkConfig) allows specifying input types (e.g., state, goal) and output requirements (e.g., scalar values from object embeddings). This flexibility supports various applications, including reinforcement learning (RL) and auxiliary loss functions.

Getting Started

Installation

Mimir-RGNN is available on PyPi and can be installed via pip:

pip install pymimir-rgnn

Examples

For an example, refer to the GitHub repository:

R-GNN Example Project

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.