Comments (12)
Ok cool so we have a TensorNetwork
-> graphviz.Graph
shim working. I think this will be a good enough for now.
It would also be cool to have a gif generator so you can visualize the contraction order of the network.
from tensornetwork.
Keep it open, we'll use it to track progress
from tensornetwork.
The current version does not seem to support net = tensornetwork.TensorNetwork(),
so how can I visualize the network from a set of nodes I created?
from tensornetwork.
Sorry for the late response!
To visialize the graph in the latest API, you can simple do
tn.to_graphvis(list_of_nodes)
from tensornetwork.
Not yet, but we definitely should add one soon!
We plan on integrating with networkx for now. That way you can easily view the network visualization inside of a colab/Jupiter notebook. We have a PR from a (recently) exintern who did network visualization of "tree like" networks, but we should definitely extend it to arbitrary networks.
Doing an integration into tensorboard would be great, but we have no plans of doing that yet.
from tensornetwork.
We plan on integrating with nxgraph for now. That way you can easily view the network visualization inside of a colab/Jupiter notebook.
That's great!
It will be helpful to construct tensor network!
Looking forward to PR and release.
I think integrating with nxgraph will be enough.
Should I close this issue?
from tensornetwork.
Thanks for raising this issue, I also think should stay open until a general solution is found. Regarding the networkx visualization, I have a jupyter notebook with some example visualizations on my PR that you can check if you like.
A problem with this implementation is that I code explicitly the coordinates of each node in the graph which might be hard to do for arbitrary networks. For trees it is possible to find the levels with a BFS but I cannot think of a general way to define coordinates. I do not have much experience on graph plotting but perhaps there are ways or libraries to do a plot that looks reasonably well automatically, without having to code every coordinate. This might be worth checking. Also, I would find nice to have interactive graphs, where you can click a node and hide/show the nodes connected to it. I think that Tensorboard might be able to do this.
from tensornetwork.
*nxgraph-> networkx.
Sorry, I wrote the wrong name
from tensornetwork.
I appreciate discussing about visualization, and also looking forward to PR.
I do not also have much experience on graph, but graphviz can be helpful to create interactive tensor network visualization.
Implementing tensorboard visualization may be hard because it is based on tensorflow graph, and it is not suitable to this library because of other runtime, like JAX.
from tensornetwork.
I would be happy to help with working on a tensor viz (vide my interest in tensor diagrams).
There is a super-simple thing in JSFiddle, with D3.js (https://jsfiddle.net/stared/8huz5gy7/):
However, for a general one I would like to make sure:
- it is possible to have different types of tensors (e.g. some have a tensor structure (e.g. sample x channel x width x height), some graphics may be good to indicate different symmetries of tensors, etc)
- most likely in Vue.js or something more modular than D3.js (though, I am open to suggestions)
from tensornetwork.
Hey that'd be awesome! We'd welcome a PR for this. I'm not a JS developer, so really anything that looks nice would be ok by me.
If you want to make a JS visualization tool, go ahead and make a new directory under visualization/js/
.
from tensornetwork.
0.0.4 is out now. You can use g = tensornetwork.to_graphviz(net)
to create an isomorphic graphviz object. From there you can pretty easily see the visualization.
from tensornetwork.
Related Issues (20)
- Flaky Test when seed not used HOT 5
- Flaky test (always fails) when seeds are removed HOT 1
- Test `test_gmres_on_larger_random_problem` fails without seeds
- symmetric backend very slow for PEPS tensors HOT 4
- Home Network
- lack sqrt operation in tensornetwork/matrixproductstates/infinite_mps.py
- TensorNetwork backend for QuTiP. HOT 2
- Bug for numpy backend ``sum`` method HOT 3
- SVD on jax backend and thus ``split_node`` cannot be jitted when ``max_truncation_err`` is set
- Bug of setting `center_position` in `apply_two_site_gate` when there's no truncation
- Quantum hardware system integration with TensorNetwork
- Missing code for TensorNetwork Machine Learning HOT 1
- `backend.item` in MPS calculation is incompatible with autograd in jax HOT 2
- The lack of tensor-train RNNs for latest tf/keras HOT 1
- Parallelism Contractors HOT 1
- Question: Vector to FiniteMPS?
- Is there a simple way to multiply a scalar to the tensor values of a node that is part of a network of tensors? HOT 2
- Maintenance of this repository HOT 3
- Tensor
- Pf
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensornetwork.