Comments (6)
At long last
from torchquad.
Also I have spoken to @WWXkenmo - I can help him IRL if he wants but what he wants to do is now possible via an API.
from torchquad.
Hi @WWXkenmo thanks for reaching out!
Yes, it is definitely related to #160 , I don't think it is yet support but implementing it should be quite manageable, I think. Would you be interested in implementing it?
@ilan-gold you are probably better qualified to answer this in general than me, what are your thoughts on this? :)
from torchquad.
Hi,
After working on code today, I think I have figure out this issue, it could be easily down by Integration by substitution.
that is, for n th function (domain), we could represent the t_n as t*t_scale_n + t0_n, in which t_scale_n = t_n - t0_n, so, for every t_n, we substitute as the function of t, then we could use a fixed domain for t ([0, 1]), and each domain would be specific by the index ([t0_n, t_n]). But be aware of the rule of integration, the integrand need to multiply the t_scale_n, but t_scale_n and t0_n now could be the new parameter, which is feasible using current vectorised method #160.
It could be down externally, but it also could be integrated in the module. I would glad to help, but maybe in the next week?
Best,
Ken
from torchquad.
@WWXkenmo If I understand you correctly, I think I have an identical use-case. I wrote a custom integrator and it works very well. @gomezzz If I understand @WWXkenmo correctly, I would be happy to contribute what I have. Basically, it lets you change the domain of integration for each of the vectorized integrands. If this is not something we want to support, then I can just make the changes that let me build this custom integrator and send @WWXkenmo the code separately.
from torchquad.
@ilan-gold can be closed now, I think, right? :)
from torchquad.
Related Issues (20)
- Change behavior of 'backend' HOT 6
- Elementwise numerical integration HOT 28
- Let user choose which GPU to use HOT 4
- torch dataloader crashed after `set_up_backend` HOT 4
- Cannot import torchquad (conda install) HOT 2
- A lot of warnings in the current test CI on develop HOT 1
- Add tests for JIT HOT 2
- Coverage check fails on PRs HOT 1
- Release 0.4.0 HOT 8
- Tests failing on GPU HOT 15
- torch.tensor containing integers as integration domain returns zero with non-compiled integrator HOT 2
- Logging with loguru not implemented correctly
- Example/documentation for parametric domain of integration? HOT 9
- Integrate function with parameters HOT 3
- Google Colab TPU support HOT 8
- CI failing on coverage check
- Regression in tests with TF HOT 4
- depricated torch.set_default_tensor_type()
- torchquad0.4版本没有BatchMulVEGAS
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 torchquad.