Skip to content

Commit

Permalink
Remove default initval for Flat variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 committed Jun 21, 2024
1 parent 9eaf92a commit c2c46a7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pymc/distributions/continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,6 @@ class Flat(Continuous):

rv_op = flat

def __new__(cls, *args, **kwargs):
kwargs.setdefault("initval", "support_point")
return super().__new__(cls, *args, **kwargs)

@classmethod
def dist(cls, **kwargs):
res = super().dist([], **kwargs)
Expand Down Expand Up @@ -414,10 +410,6 @@ class HalfFlat(PositiveContinuous):

rv_op = halfflat

def __new__(cls, *args, **kwargs):
kwargs.setdefault("initval", "support_point")
return super().__new__(cls, *args, **kwargs)

@classmethod
def dist(cls, **kwargs):
res = super().dist([], **kwargs)
Expand Down

0 comments on commit c2c46a7

Please sign in to comment.