File tree Expand file tree Collapse file tree 6 files changed +16
-9
lines changed Expand file tree Collapse file tree 6 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ confidence=
62
62
# --disable=W".
63
63
disable =fixme,
64
64
no-else-return,
65
- too-many-lines
65
+ too-many-lines,
66
+ similarities
66
67
67
68
# Enable the message, report, category or checker with the given id(s). You can
68
69
# either give multiple identifier separated by comma (,) or put this option
@@ -484,6 +485,9 @@ preferred-modules=
484
485
485
486
[DESIGN]
486
487
488
+ # Maximum number of positional arguments for function / method.
489
+ max-positional-arguments =10
490
+
487
491
# Maximum number of arguments for function / method.
488
492
max-args =10
489
493
Original file line number Diff line number Diff line change 1
1
"""A package for rpv and ecological inference"""
2
2
3
- __version__ = "1.1.1 "
3
+ __version__ = "1.1.2 "
4
4
from .two_by_two import *
5
5
from .goodmans_er import *
6
6
from .plot_utils import *
Original file line number Diff line number Diff line change 9
9
"""
10
10
11
11
import warnings
12
- from pymc import sampling_jax
12
+ import pymc as pm
13
13
import numpy as np
14
14
from .plot_utils import (
15
15
plot_boxplots ,
@@ -200,8 +200,11 @@ def fit( # pylint: disable=too-many-branches
200
200
"multinomial-dirichlet" ,
201
201
]: # for models whose sampling is w/ pycm
202
202
with self .sim_model : # pylint: disable=not-context-manager
203
- self .sim_trace = sampling_jax .sample_numpyro_nuts (
204
- target_accept = target_accept , tune = tune , ** other_sampling_args
203
+ self .sim_trace = pm .sample (
204
+ target_accept = target_accept ,
205
+ tune = tune ,
206
+ nuts_sampler = "numpyro" ,
207
+ ** other_sampling_args ,
205
208
)
206
209
elif self .model_name == "greiner-quinn" :
207
210
self .sim_trace = pyei_greiner_quinn_sample (
Original file line number Diff line number Diff line change 5
5
6
6
import warnings
7
7
import pymc as pm
8
- from pymc import sampling_jax
9
8
import numpy as np
10
9
import pytensor .tensor as at
11
10
import pytensor
@@ -847,9 +846,10 @@ def fit(
847
846
** other_sampling_args ,
848
847
)
849
848
else :
850
- self .sim_trace = sampling_jax . sample_numpyro_nuts (
849
+ self .sim_trace = pm . sample (
851
850
target_accept = target_accept ,
852
851
tune = tune ,
852
+ nuts_sampler = "numpyro" ,
853
853
** other_sampling_args ,
854
854
)
855
855
Original file line number Diff line number Diff line change 1
- pymc >= 5.10 .0
1
+ pymc >= 5.18 .0
2
2
arviz
3
3
scikit-learn
4
4
matplotlib
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def get_requirements():
21
21
with codecs .open (REQUIREMENTS_FILE , "r" , encoding = "utf-8" ) as buff :
22
22
return buff .read ().splitlines ()
23
23
except :
24
- return """pymc >= 5.10 .0
24
+ return """pymc >= 5.18 .0
25
25
arviz
26
26
scikit-learn
27
27
matplotlib
You can’t perform that action at this time.
0 commit comments