blob: 0957c681016ee3c00b6b02912d92ac7fb6faee9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Classes representing statistical distributions and ops for working with them.
## Classes for statistical distributions.
Classes that represent batches of statistical distributions. Each class is
initialized with parameters that define the distributions.
### Base classes
@@BaseDistribution
@@ContinuousDistribution
@@DiscreteDistribution
### Univariate (scalar) distributions
@@Bernoulli
@@Categorical
@@Chi2
@@Exponential
@@Gamma
@@Normal
@@StudentT
@@Uniform
### Multivariate distributions
#### Multivariate normal
@@MultivariateNormalFull
@@MultivariateNormalCholesky
#### Other multivariate distributions
@@DirichletMultinomial
### Transformed distributions
@@ContinuousTransformedDistribution
## Operators allowing for matrix-free methods
### Positive definite operators
A matrix is positive definite if it is symmetric with all positive eigenvalues.
@@OperatorPDBase
@@OperatorPDFull
@@OperatorPDCholesky
@@batch_matrix_diag_transform
## Posterior inference with conjugate priors.
Functions that transform conjugate prior/likelihood pairs to distributions
representing the posterior or posterior predictive.
### Normal likelihood with conjugate prior.
@@normal_conjugates_known_sigma_posterior
@@normal_congugates_known_sigma_predictive
## Kullback Leibler Divergence
@@kl
@@RegisterKL
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# pylint: disable=unused-import,wildcard-import,line-too-long,g-importing-member
from tensorflow.contrib.distributions.python.ops.bernoulli import *
from tensorflow.contrib.distributions.python.ops.categorical import *
from tensorflow.contrib.distributions.python.ops.chi2 import *
from tensorflow.contrib.distributions.python.ops.dirichlet_multinomial import *
from tensorflow.contrib.distributions.python.ops.distribution import *
from tensorflow.contrib.distributions.python.ops.exponential import *
from tensorflow.contrib.distributions.python.ops.gamma import *
from tensorflow.contrib.distributions.python.ops.kullback_leibler import *
from tensorflow.contrib.distributions.python.ops.mvn import *
from tensorflow.contrib.distributions.python.ops.normal import *
from tensorflow.contrib.distributions.python.ops.normal_conjugate_posteriors import *
from tensorflow.contrib.distributions.python.ops.operator_pd import *
from tensorflow.contrib.distributions.python.ops.operator_pd_cholesky import *
from tensorflow.contrib.distributions.python.ops.operator_pd_full import *
from tensorflow.contrib.distributions.python.ops.student_t import *
from tensorflow.contrib.distributions.python.ops.transformed_distribution import *
from tensorflow.contrib.distributions.python.ops.uniform import *
|