Coder Social home page Coder Social logo

Comments (3)

Harshal662 avatar Harshal662 commented on August 20, 2024

I can do that

from rustquant.

spoloxs avatar spoloxs commented on August 20, 2024

digraph Tape {
rankdir="LR";
node [shape=box3d];
0 [label="Input: x_0, Value: 2.00", color="red"];digraph Tape {
rankdir="LR";
node [shape=box3d];
0 [label="Input: x_0, Value: 2.00", color="red"];
1 [label="Input: x_1, Value: 3.00", color="red"];
2 [label="Op: #2"];
3 [label="Op: #3"];
4 [label="Op: #4"];
0 -> 2 [label="∂_0: 3.00"];
1 -> 2 [label="∂_1: 2.00"];
2 -> 3 [label="∂_0: 403.43"];
3 -> 4 [label="∂_0: 0.26"];
}
digraph Tape {
rankdir="LR";
node [shape=box3d];
0 [label="Input: x_0, Value: 1.00", color="red"];
1 [label="Input: x_1, Value: 2.00", color="red"];
2 [label="Op: #2"];
3 [label="Op: #3"];
4 [label="Op: #4"];
0 -> 2 [label="∂_0: 2.00"];
1 -> 2 [label="∂_1: 1.00"];
1 -> 3 [label="∂_0: -0.42"];
2 -> 4 [label="∂_0: 1.00"];
3 -> 4 [label="∂_1: 1.00"];
}
digraph Tape {
rankdir="LR";
node [shape=box3d];
0 [label="Input: x_0, Value: 1.00", color="red"];
1 [label="Input: x_1, Value: 2.00", color="red"];
2 [label="Input: x_2, Value: 3.00", color="red"];
3 [label="Input: x_3, Value: 4.00", color="red"];
4 [label="Op: #4"];
5 [label="Op: #5"];
6 [label="Op: #6"];
7 [label="Op: #7"];
8 [label="Input: x_8, Value: 5.00", color="red"];
9 [label="Op: #9"];
10 [label="Op: #10"];
11 [label="Op: #11"];
12 [label="Op: #12"];
13 [label="Op: #13"];
14 [label="Op: #14"];
0 -> 4 [label="∂_0: 2.72"];
1 -> 5 [label="∂_0: 0.21"];
4 -> 6 [label="∂_0: 1.00"];
5 -> 6 [label="∂_1: 1.00"];
6 -> 7 [label="∂_0: -0.67"];
2 -> 9 [label="∂_0: 0.29"];
3 -> 10 [label="∂_0: 8.00"];
3 -> 10 [label="∂_1: 0.00"];
9 -> 11 [label="∂_0: 1.00"];
10 -> 11 [label="∂_1: 1.00"];
11 -> 12 [label="∂_0: 0.06"];
8 -> 13 [label="∂_0: 2.88"];
12 -> 13 [label="∂_1: 5.00"];
7 -> 14 [label="∂_0: 1.00"];
13 -> 14 [label="∂_1: 1.00"];
}
Gradient: [-1.8212, -0.1407, 0.0814, 2.2558, 2.8754]
1 [label="Input: x_1, Value: 3.00", color="red"];
2 [label="Op: #2"];
3 [label="Op: #3"];
4 [label="Op: #4"];
0 -> 2 [label="∂_0: 3.00"];
1 -> 2 [label="∂_1: 2.00"];
2 -> 3 [label="∂_0: 403.43"];
3 -> 4 [label="∂_0: 0.26"];
}
digraph Tape {
rankdir="LR";
node [shape=box3d];
0 [label="Input: x_0, Value: 1.00", color="red"];
1 [label="Input: x_1, Value: 2.00", color="red"];
2 [label="Op: #2"];
3 [label="Op: #3"];
4 [label="Op: #4"];
0 -> 2 [label="∂_0: 2.00"];
1 -> 2 [label="∂_1: 1.00"];
1 -> 3 [label="∂_0: -0.42"];
2 -> 4 [label="∂_0: 1.00"];
3 -> 4 [label="∂_1: 1.00"];
}
digraph Tape {
rankdir="LR";
node [shape=box3d];
0 [label="Input: x_0, Value: 1.00", color="red"];
1 [label="Input: x_1, Value: 2.00", color="red"];
2 [label="Input: x_2, Value: 3.00", color="red"];
3 [label="Input: x_3, Value: 4.00", color="red"];
4 [label="Op: #4"];
5 [label="Op: #5"];
6 [label="Op: #6"];
7 [label="Op: #7"];
8 [label="Input: x_8, Value: 5.00", color="red"];
9 [label="Op: #9"];
10 [label="Op: #10"];
11 [label="Op: #11"];
12 [label="Op: #12"];
13 [label="Op: #13"];
14 [label="Op: #14"];
0 -> 4 [label="∂_0: 2.72"];
1 -> 5 [label="∂_0: 0.21"];
4 -> 6 [label="∂_0: 1.00"];
5 -> 6 [label="∂_1: 1.00"];
6 -> 7 [label="∂_0: -0.67"];
2 -> 9 [label="∂_0: 0.29"];
3 -> 10 [label="∂_0: 8.00"];
3 -> 10 [label="∂_1: 0.00"];
9 -> 11 [label="∂_0: 1.00"];
10 -> 11 [label="∂_1: 1.00"];
11 -> 12 [label="∂_0: 0.06"];
8 -> 13 [label="∂_0: 2.88"];
12 -> 13 [label="∂_1: 5.00"];
7 -> 14 [label="∂_0: 1.00"];
13 -> 14 [label="∂_1: 1.00"];
}
Gradient: [-1.8212, -0.1407, 0.0814, 2.2558, 2.8754]

From this output I can see you are using shape=box3d which is already having transparent bg.. I don't think there is anything need for doing. If I am looking at wrong file please correct me

from rustquant.

avhz avatar avhz commented on August 20, 2024

I already made the change yesterday, just haven't pushed it yet.

The change just makes the background transparent such that if it is included in a markdown document that has a non-white background, then the Graphviz plot doesn't have a white box.

from rustquant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.