Skip to content

Commit 54f7101

Browse files
lucianopazricardoV94
authored andcommitted
Add mean dispatch for pymc distributions
1 parent 81cfe3c commit 54f7101

File tree

6 files changed

+777
-0
lines changed

6 files changed

+777
-0
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
- |
6666
tests/distributions/test_continuous.py
6767
tests/distributions/test_multivariate.py
68+
tests/distributions/moments/test_means.py
6869
6970
- |
7071
tests/distributions/test_censored.py
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright 2024 The PyMC Developers
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
"""Moments dispatchers for pymc random variables."""
16+
17+
from pymc.distributions.moments.means import mean
18+
19+
__all__ = ["mean"]

0 commit comments

Comments
 (0)