Skip to content

Commit f3b66cf

Browse files
csutertensorflower-gardener
authored andcommitted
Export FiniteDiscrete in tfp/d/__init__ and sort __all__ in same file.
PiperOrigin-RevId: 387829228
1 parent 980c611 commit f3b66cf

File tree

1 file changed

+48
-47
lines changed

1 file changed

+48
-47
lines changed

tensorflow_probability/python/distributions/__init__.py

Lines changed: 48 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,6 @@
166166
# pylint: enable=line-too-long
167167

168168
__all__ = [
169-
'FULLY_REPARAMETERIZED',
170-
'NOT_REPARAMETERIZED',
171-
'ReparameterizationType',
172-
'Distribution',
173169
'Autoregressive',
174170
'BatchBroadcast',
175171
'BatchReshape',
@@ -185,34 +181,38 @@
185181
'Chi',
186182
'Chi2',
187183
'CholeskyLKJ',
184+
'DeterminantalPointProcess',
188185
'Deterministic',
186+
'Dirichlet',
187+
'DirichletMultinomial',
188+
'Distribution',
189189
'DoublesidedMaxwell',
190-
'VectorDeterministic',
191-
'DeterminantalPointProcess',
192190
'Empirical',
193-
'ExponentiallyModifiedGaussian',
194191
'ExpGamma',
195192
'ExpInverseGamma',
196193
'Exponential',
197-
'VectorExponentialDiag',
194+
'ExponentiallyModifiedGaussian',
195+
'ExpRelaxedOneHotCategorical',
196+
'FiniteDiscrete',
197+
'FULLY_REPARAMETERIZED',
198198
'Gamma',
199199
'GammaGamma',
200-
'InverseGaussian',
200+
'GaussianProcess',
201+
'GaussianProcessRegressionModel',
202+
'GeneralizedExtremeValue',
201203
'GeneralizedNormal',
202204
'GeneralizedPareto',
203205
'Geometric',
204-
'GaussianProcess',
205-
'GaussianProcessRegressionModel',
206-
'VariationalGaussianProcess',
207206
'Gumbel',
208-
'GeneralizedExtremeValue',
209207
'HalfCauchy',
210208
'HalfNormal',
211209
'HalfStudentT',
212210
'HiddenMarkovModel',
213211
'Horseshoe',
214212
'Independent',
213+
'independent_joint_distribution_from_structure',
215214
'InverseGamma',
215+
'InverseGaussian',
216216
'JohnsonSU',
217217
'JointDistribution',
218218
'JointDistributionCoroutine',
@@ -221,25 +221,55 @@
221221
'JointDistributionNamedAutoBatched',
222222
'JointDistributionSequential',
223223
'JointDistributionSequentialAutoBatched',
224+
'kl_divergence',
224225
'Kumaraswamy',
225226
'LambertWDistribution',
226227
'LambertWNormal',
227228
'Laplace',
228229
'LinearGaussianStateSpaceModel',
229230
'LKJ',
230231
'Logistic',
232+
'LogitNormal',
231233
'LogLogistic',
232234
'LogNormal',
233-
'LogitNormal',
234235
'MarkovChain',
236+
'Masked',
237+
'MatrixNormalLinearOperator',
238+
'MatrixTLinearOperator',
239+
'Mixture',
240+
'MixtureSameFamily',
235241
'Moyal',
242+
'Multinomial',
243+
'MultivariateNormalDiag',
244+
'MultivariateNormalDiagPlusLowRank',
245+
'MultivariateNormalFullCovariance',
246+
'MultivariateNormalLinearOperator',
247+
'MultivariateNormalTriL',
248+
'MultivariateStudentTLinearOperator',
249+
'mvn_conjugate_linear_update',
236250
'NegativeBinomial',
237251
'Normal',
252+
'normal_conjugates_known_scale_posterior',
253+
'normal_conjugates_known_scale_predictive',
238254
'NormalInverseGaussian',
255+
'NOT_REPARAMETERIZED',
256+
'OneHotCategorical',
257+
'OrderedLogistic',
258+
'Pareto',
259+
'PERT',
239260
'PixelCNN',
261+
'PlackettLuce',
240262
'Poisson',
241263
'PoissonLogNormalQuadratureCompound',
264+
'PowerSpherical',
242265
'ProbitBernoulli',
266+
'quadrature_scheme_lognormal_gauss_hermite',
267+
'quadrature_scheme_lognormal_quantiles',
268+
'QuantizedDistribution',
269+
'RegisterKL',
270+
'RelaxedBernoulli',
271+
'RelaxedOneHotCategorical',
272+
'ReparameterizationType',
243273
'Sample',
244274
'SigmoidBeta',
245275
'SinhArcsinh',
@@ -248,47 +278,18 @@
248278
'StoppingRatioLogistic',
249279
'StudentT',
250280
'StudentTProcess',
281+
'TransformedDistribution',
251282
'Triangular',
252283
'TruncatedCauchy',
253284
'TruncatedNormal',
254285
'Uniform',
255-
'Masked',
256-
'MatrixNormalLinearOperator',
257-
'MatrixTLinearOperator',
258-
'MultivariateNormalDiag',
259-
'MultivariateNormalFullCovariance',
260-
'MultivariateNormalLinearOperator',
261-
'MultivariateNormalTriL',
262-
'MultivariateNormalDiagPlusLowRank',
263-
'MultivariateStudentTLinearOperator',
264-
'Dirichlet',
265-
'DirichletMultinomial',
266-
'Multinomial',
286+
'VariationalGaussianProcess',
287+
'VectorDeterministic',
288+
'VectorExponentialDiag',
267289
'VonMises',
268290
'VonMisesFisher',
269291
'Weibull',
270292
'WishartLinearOperator',
271293
'WishartTriL',
272-
'TransformedDistribution',
273-
'QuantizedDistribution',
274-
'Mixture',
275-
'MixtureSameFamily',
276-
'ExpRelaxedOneHotCategorical',
277-
'OneHotCategorical',
278-
'OrderedLogistic',
279-
'Pareto',
280-
'PERT',
281-
'PlackettLuce',
282-
'PowerSpherical',
283-
'RelaxedBernoulli',
284-
'RelaxedOneHotCategorical',
285294
'Zipf',
286-
'kl_divergence',
287-
'RegisterKL',
288-
'independent_joint_distribution_from_structure',
289-
'mvn_conjugate_linear_update',
290-
'normal_conjugates_known_scale_posterior',
291-
'normal_conjugates_known_scale_predictive',
292-
'quadrature_scheme_lognormal_gauss_hermite',
293-
'quadrature_scheme_lognormal_quantiles',
294295
]

0 commit comments

Comments
 (0)