TorchSharp icon indicating copy to clipboard operation
TorchSharp copied to clipboard

torch.distributions namespace is missing

Open NiklasGustafsson opened this issue 4 years ago • 4 comments

NiklasGustafsson avatar Jul 05 '21 16:07 NiklasGustafsson

About half of the namespace has now been added.

NiklasGustafsson avatar Jul 23 '21 22:07 NiklasGustafsson

From what I can tell when comparing the code (unless some of these aren't in the Distributions folder) this is what remains: ContinuousBernoulli Gumbel HalfCauchy HalfNormal Independent Kumaraswamy LKJCholesky Laplace LogNormal LowRankMultivariateNormal MixtureSameFamily MultivariateNormal NegativeBinomial OneHotCategorical Pareto RelaxedBernoulli LogitRelaxedBernoulli RelaxedOneHotCategorical StudentT TransformedDistribution VonMises Weibull KL Divergence Transforms     ComposeTransform     IndependentTransform     ReshapeTransform     ExpTransform     PowerTransform     SigmoidTransform     TanhTransform     AbsTransform     AffineTransform     CorrCholeskyTransform     SoftmaxTransform     StickBreakingTransform     LowerCholeskyTransform     StackTransform Constraint     boolean     cat     corr_cholesky     dependent     greater_than(lower_bound)     greater_than_eq(lower_bound)     independent(constraint, reinterpreted_batch_ndims)     integer_interval(lower_bound, upper_bound)     interval(lower_bound, upper_bound)     less_than(upper_bound)     lower_cholesky     lower_triangular     multinomial     nonnegative_integer     one_hot     positive_definite     positive_integer     positive     real_vector     real     simplex     stack     unit_interval ConstraintRegistry

michaelgsharp avatar Aug 17 '21 19:08 michaelgsharp

Pytoch: torch/distributions

  • [ ] ContinuousBernoulli
  • [ ] ConstraintRegistry
  • [x] ExpRelaxedCategorical
  • [x] Gumbel
  • [x] HalfCauchy
  • [x] HalfNormal
  • [x] Independent
  • [x] Kumaraswamy
  • [ ] LKJCholesky
  • [x] Laplace
  • [x] LogNormal
  • [ ] LowRankMultivariateNormal
  • [ ] MixtureSameFamily
  • [x] MultivariateNormal
  • [x] NegativeBinomial
  • [x] OneHotCategorical
  • [x] Pareto
  • [x] RelaxedBernoulli
  • [x] LogitRelaxedBernoulli
  • [x] RelaxedOneHotCategorical
  • [ ] StudentT
  • [x] TransformedDistribution
  • [ ] VonMises
  • [x] Weibull
  • [ ] Wishart
  • [ ] KL Divergence

Transforms

  • [x] ComposeTransform
  • [x] IndependentTransform
  • [x] ReshapeTransform
  • [x] ExpTransform
  • [x] PowerTransform
  • [x] SigmoidTransform
  • [x] TanhTransform
  • [x] AbsTransform
  • [x] AffineTransform
  • [ ] CorrCholeskyTransform
  • [x] SoftmaxTransform
  • [ ] StickBreakingTransform
  • [ ] LowerCholeskyTransform
  • [ ] StackTransform

Constraint

  • [x] boolean
  • [x] cat
  • [x] corr_cholesky
  • [x] dependent
  • [x] greater_than(lower_bound)
  • [x] greater_than_eq(lower_bound)
  • [x] independent(constraint, reinterpreted_batch_ndims)
  • [x] integer_interval(lower_bound, upper_bound)
  • [x] interval(lower_bound, upper_bound)
  • [x] less_than(upper_bound)
  • [x] lower_cholesky
  • [x] lower_triangular
  • [x] multinomial
  • [x] nonnegative_integer
  • [x] one_hot
  • [x] positive_definite
  • [x] positive_integer
  • [x] positive
  • [x] real_vector
  • [x] real
  • [x] simplex
  • [x] stack
  • [x] unit_interval

GeorgeS2019 avatar Jul 30 '22 18:07 GeorgeS2019

Major implementation of Distribution!

  • https://github.com/dotnet/TorchSharp/pull/700
  • https://github.com/dotnet/TorchSharp/pull/701 image

GeorgeS2019 avatar Aug 16 '22 20:08 GeorgeS2019