TopGit theo dõi google-deepmind/graph_nets trên GitHub trong nhóm AI Tools, đã đạt 5.4k sao. Build Graph Nets in Tensorflow
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
A graph network takes a graph as input and returns a graph as output. The input
graph has edge- (E ), node- (V ), and global-level (u) attributes. The
output graph has the same structure, but updated attributes. Graph networks are
part of the broader family of "graph neural networks" (Scarselli et al., 2009).
To learn more about graph networks, see our arXiv paper: Relational inductive
biases, deep learning, and graph networks.
Installation
The Graph Nets library can be installed from pip.
This installation is compatible with Linux/Mac OS X, and Python 2.7 and 3.4+.
The library will work with both the CPU and GPU version of TensorFlow, but to
allow for that it does not list Tensorflow as a requirement, so you need to
install Tensorflow separately if you haven't already done so.
To install the Graph Nets library and use it with TensorFlow 1 and Sonnet 1, run:
The latest version of the library requires TensorFlow >=1.15. For compatibility with earlier versions of TensorFlow, please install v1.0.4 of the Graph Nets library.
Usage example
The following code constructs a simple graph net module and connects it to data.
import graph_nets as gn
import sonnet as snt
# Provide your own functions to generate graph-structured data.
input_graphs = get_graphs()
# Create the graph network.
graph_net_module = gn.modules.GraphNetwork(
edge_model_fn=lambda: snt.nets.MLP([32, 32]),
node_model_fn=lambda: snt.nets.MLP([32, 32]),
global_model_fn=lambda: snt.nets.MLP([32, 32]))
# Pass the input graphs to the graph network, and return the output graphs.
output_graphs = graph_net_module(input_graphs)
Demo Jupyter notebooks
The library includes demos which show how to create, manipulate, and
train graph networks to reason about graph-structured data, on a
shortest path-finding task, a sorting task, and a physical prediction task.
Each demo uses the same graph network architecture, which highlights the
flexibility of the approach.
Try the demos in your browser in Colaboratory
To try out the demos without installing anything locally, you can run the demos
in your browser (even on your phone) via a cloud Colaboratory backend. Click a
demo link below, and follow the instructions in the notebook.
Run "shortest path demo" in browser
The "shortest path demo" creates random graphs, and trains a graph network to
label the nodes and edges on the shortest path between any two nodes. Over a
sequence of message-passing steps (as depicted by each step's plot), the
model refines its prediction of the shortest path.
Run "sort demo" in browser (Run TF2 version)
The "sort demo" creates lists of random numbers, and trains a graph network to
sort the list. After a sequence of message-passing steps, the model makes an
accurate prediction of which elements (columns in the figure) come next after
each other (rows).
Run "physics demo" in browser
The "physics demo" creates random mass-spring physical systems, and trains a
graph network to predict the state of the system on the next timestep. The
model's next-step predictions can be fed back in as input to create a rollout of
a future trajectory. Each subplot below shows the true and predicted mass-spring
system states over 50 steps. This is similar to the model and experiments in
Battaglia et al. (2016)'s "interaction networks".
Run "graph nets basics demo" in browser (Run TF2 version)
The "graph nets basics demo" is a tutorial containing step by step examples
about how to create and manipulate graphs, how to feed them into
graph networks and how to build custom graph network modules.
Run the demos on your local machine
To install the necessary dependencies, run:
$ pip install jupyter matplotlib scipy
To try the demos, run:
$ cd <path-to-graph-nets-library>/demos
$ jupyter notebook
then open a demo through the Jupyter notebook interface.
Other graph neural network libraries
Check out these high-quality open-source libraries for graph neural networks:
jraph: DeepMind's GNNs/GraphNets library
for JAX.
pytorch_geometric: See
MetaLayer
for an analog of our Graph Nets interface.
google-deepmind/graph_nets thuộc nhóm AI Tools trên TopGit, cùng 7 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về google-deepmind/graph_nets ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/google-deepmind/graph_nets là nguồn chính thức.
google-deepmind/graph_nets có bao nhiêu sao?
google-deepmind/graph_nets có 5.4k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/google-deepmind/graph_nets. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
google-deepmind/graph_nets có phải mã nguồn mở không?
Có — google-deepmind/graph_nets phát hành theo license Apache-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/google-deepmind/graph_nets.
google-deepmind/graph_nets có trang demo không?
Dự án có trang chủ ở https://arxiv.org/abs/1806.01261. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
google-deepmind/graph_nets là gì?
google-deepmind/graph_nets (google-deepmind/graph_nets) là dự án Python trên GitHub. Theo mô tả gốc: Build Graph Nets in Tensorflow
google-deepmind/graph_nets so với các dự án AI Tools khác thế nào?
google-deepmind/graph_nets được TopGit xếp vào nhóm AI Tools, với 5.4k sao GitHub và viết bằng Python. Xem trang chủ đề AI Tools trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc graph_nets có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về graph_nets.