Skip to content

Commit

Permalink
Improved imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhruvanshu-Joshi committed Oct 17, 2023
1 parent 155dafc commit 88846fb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pymc/logprob/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,14 @@
from pytensor.tensor.random.op import RandomVariable
from pytensor.tensor.variable import TensorVariable

import pymc as pm

from pymc.logprob.abstract import (
MeasurableVariable,
_logcdf_helper,
_logprob,
_logprob_helper,
)
from pymc.logprob.rewriting import measurable_ir_rewrites_db
from pymc.math import logdiffexp
from pymc.pytensorf import constant_fold


Expand Down Expand Up @@ -159,7 +158,7 @@ def max_logprob_discrete(op, values, base_rv, **kwargs):

[n] = constant_fold([base_rv.size])

logprob = pm.math.logdiffexp(n * logcdf, n * logcdf_prev)
logprob = logdiffexp(n * logcdf, n * logcdf_prev)

return logprob

Expand Down

0 comments on commit 88846fb

Please sign in to comment.