mesa / mesa/mesa-frames

feat: Adding Concrete NetworkDF

Open
#47 0 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
Python
Stars
42
Forks
18
Avg merge
1m
Merged PRs (30d)
1

Description

The network structure can provide powerful insights when modeling social interactions.

The agent’s attribute table already encodes nodes and node features. Meanwhile, the Network DataFrame would encode the relationships between nodes along with the attributes of these relationships. This setup should also allow for compatibility with other spatial structures.

For PyTorch integration, Ibis offers a [to_torch](https://ibis-project.org/posts/torch/#execute-the-query-and-convert-to-torch-tensors) command that simplifies tensor conversion. Additionally, we could introduce a command to retrieve a tensor-based representation directly, making it possible to leverage libraries like [PyTorch Geometric](https://github.com/pyg-team/pytorch_geometric) or [DGL](https://github.com/dmlc/dgl) for advanced relational analysis.

Contributor guide

Open the contributing guide

Research direction

The issue does not name files, tests, or entry points. Start by locating the existing agent attribute table and spatial structures, then review how Ibis and the proposed PyTorch conversion relate to a Network DataFrame; done should include a defined relationship representation and its intended tensor integration.

Written by the indexing model from the issue text.

Assessment

Tech stack
pandas, python, pytorch
Domain
data, machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.