Comments (5)
Hi @cscherrer, I had a brief look at Stan but not sure I see the connection. The main point of this package is to provide types that implement in
, such as UnitDisk
(norm(x) ≤ 1
).
There are also maps between domains, maybe this is what you are interested in?
from domainsets.jl.
Yes, there are a few needs:
- Represent the support (set of nonzero densities) of a distribution. A few important ones are the unit interval, positive reals, and simplex
- Map between any continuous of these and ℝ^n
- Track Jacobian of this transformation
Is this not a good use case for your package? I had looked into using TransformVariables.jl which seems great, but may not have as much flexibility of representing different spaces as your approach.
from domainsets.jl.
I think this is a good use case for representing the domains. @daanhb might have comments about support for Jacobians.
from domainsets.jl.
In principle, the stance of the package is that the Jacobian of a map is itself a map.
The minimal amount of information about a map is which types it maps between (these are the type parameters S
and T
) and an implementation of applymap
: this should take an argument x
of type S
and return something of type T
. It is not assumed that maps are invertible, and there is support for specifying left and right inverses. (This flexibility helps to decide membership of a domain in case the dimensions of the spaces of a map differ.)
It is a pretty flexible framework. However, it hasn't been used much yet, and so there aren't many examples I'm afraid.
There is an example of a map in circle.jl. The AngleMap
and UnitCircleMap
describe the map from the interval to a circle and back. These do not (yet) have jacobians implemented.
An example of a Jacobian is in affine_maps.jl: the jacobian of any linear map is a constant map, see line 14. The affine maps are currently the most used and most developed ones. Compared to some other implementations in other Julia packages, it is not assumed that the matrix is square (i.e. it is not assumed that the map is uniquely invertible).
from domainsets.jl.
That should give me a good start. Thank you!
from domainsets.jl.
Related Issues (20)
- More Spaces HOT 18
- Center for HyperRectangle? HOT 4
- Should boundary(::Rectangle) use simpler types? HOT 2
- Failure on julia master `Method overwriting is not permitted during Module precompile.` HOT 1
- Precompiling ParameterEstimation fails HOT 2
- Hashes of domains should be consistent with equality HOT 3
- Getting the domain/support of objects, and domain type hierarchy HOT 61
- Support constructors along with `convert` HOT 3
- arithmetic operations with broadcasting
- package extensions and interoperability with different domain types HOT 1
- Roadmap for future development of DomainSets HOT 3
- A confusing bug HOT 9
- VcatDomain(ℝ, ℕ) causes MethodError HOT 2
- Removing points from interval HOT 3
- Depend on EltypeExtensions.jl? HOT 6
- Triangles? HOT 1
- Add Makie extension? HOT 3
- Fix codecov
- `RealNumbers` vs `RealLine` HOT 3
- Allow Makie v0.21 HOT 3
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 domainsets.jl.