Comments (3)
I can do that
from rustquant.
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.
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)
- Include all features on docs.rs. HOT 4
- Unify `ml` input data type to one interface HOT 3
- Implement a `Surface` type. HOT 7
- Add more calendars. HOT 7
- Implement Interest Rate Swap pricer. HOT 2
- feat(stochastics): Have time-varying parameters for processes HOT 5
- Use Release-Plz for automatic releases. HOT 6
- Add CEV process
- Implied volatility calculation HOT 4
- Feature Request: Implement `get_weights()` method for `Portfolio` HOT 1
- has some tutorial
- Can we support built-in "factor analysis"? HOT 3
- Deprecate `calendars` sub-module and move to `calenda-rs` crate.
- Replace `OffsetDateTime` with `Date`.
- Roadmap to `v1`
- Implement a `Curve` type. HOT 7
- doc.rs failed to build HOT 1
- decision tree algorithm for machine learning HOT 4
- Generalized Black-Scholes (GBS) model in Rust. HOT 2
- Inconsistency between code and documentation HOT 1
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 rustquant.