Comments (1)
Thanks!
So this is heavily related to issue #35 and thus PR #44. In PR #44 we've introduced dimensionality into the Bijector
type, so it's now Bijector{D}
. But this is slightly different from what you're suggesting:
- In #44
D
refers to the dimensionality rather than the size of the array, e.g.SimplexBijector
acts on 1-dim input (vector) whileLogit
acts on 0-dim input (real). - We assume input- and output-dimensions
D
to be equal.
With that being said, as mentioned in the comment-section of #35, we want to introduce a fixed size StaticBijector
or something which also has the input- and output size in the type similar to StaticArrays.jl. This seems closer in nature to what you're referring to, right?
The only difference is that you want the "flattened" structure. I'm also not sure if I'm comfortable with the notion of using the flattened number of components. I see why you'd do that though, e.g. need to consider a matrix as a vector to talk about integration, but seems like an unnecessary detail to expose to the user. Seems better to give the size of the matrix, e.g. (3, 3)
rather than 9
. Is there a particular reason why you'd want it "flattened" like this?
Finally, I'd ideally like to preserve the notion of the mapping being one-to-one and onto, i.e. personally I don't like reducing the number of components from the input to the output. I do agree it's not always obvious that we'd like this, e.g. SimplexBijector
is really acting on a K - 1
subspace of the K
vector you pass into it. This is a result of the underlying constraint on the length K
input vector. I'm honestly not sure how to handle this properly at the moment, so for now we just set one output component to 0 (this is also done in other packages, e.g. Stan or PyTorch for the same transformation).
I'm honestly not 100% sure what the best approach for all of this is. We were also briefly considering actually specifying the input- and output types. This way you could potentially specialize for doing work on GPU, etc. Again, not entirely sure what the best approach is yet. Feel free to join the discussion over at #35 though!
from bijectors.jl.
Related Issues (20)
- Remove heavy usage of `@generated` HOT 2
- Add `rng` to have the reproducibility in `PlanarLayer` and `RadialLayer`
- `logpdf` of `UnivariateTransformed` produces `StackOverflowError` HOT 7
- Zygote is broken for `Stacked` bijectors HOT 5
- filldist, up1 not defined HOT 6
- Adding bijectors for OrderStatistic and JointOrderStatistics HOT 1
- Add API function to retrieve size of bijector output from bijector input HOT 1
- rational quadratic flows not supporting Float32 input HOT 1
- What to do with `CorrBijector` ? HOT 1
- Improve `PDVecBijector`
- Matrix factorization bijectors HOT 4
- Domain Error for VecCholeskyBijector bijector when calling logabsdetjac HOT 4
- Question on simplex bijector implementation HOT 9
- Can't apply Bijectors.ordered to TDist() and MvTDist() HOT 1
- Incorrect bijector for heterogeneous Product distribution HOT 3
- Radial flow to a simplex HOT 5
- Stackoverflow in custom bijector HOT 2
- Missing implementation of `Bijectors.bijector` for `arraydist` distributions. HOT 1
- Bijectors.ordered and MvLogNormal interaction .. only supported for unconstrained distributions. HOT 1
- `TruncatedBijectors` not defined in `Distributions` extension
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 bijectors.jl.