Skip to content

Commit 071c8cc

Browse files
author
juanitorduz
committed
fix sort
1 parent e757477 commit 071c8cc

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

pymc_bart/bart.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# limitations under the License.
1616

1717
from multiprocessing import Manager
18+
from typing import List, Optional, Tuple
1819

1920
import numpy as np
2021
import numpy.typing as npt
@@ -23,11 +24,8 @@
2324
from pymc.distributions.distribution import Distribution, _moment
2425
from pymc.logprob.abstract import _logprob
2526
from pytensor.tensor.random.op import RandomVariable
26-
from typing import List, Optional, Tuple
27-
28-
29-
from .utils import _sample_posterior, TensorLike
3027

28+
from .utils import TensorLike, _sample_posterior
3129

3230
__all__ = ["BART"]
3331

pymc_bart/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Utility function for variable selection and bart interpretability."""
22

33
import warnings
4+
from typing import List, Optional, Tuple, Union
45

56
import arviz as az
67
import matplotlib.pyplot as plt
@@ -11,9 +12,8 @@
1112
from scipy.interpolate import griddata
1213
from scipy.signal import savgol_filter
1314
from scipy.stats import norm, pearsonr
14-
from typing import List, Optional, Tuple, Union
15-
from .tree import Tree
1615

16+
from .tree import Tree
1717

1818
TensorLike = Union[npt.NDArray[np.float_], pt.TensorVariable]
1919

0 commit comments

Comments
 (0)