Skip to content
This repository was archived by the owner on Aug 13, 2018. It is now read-only.
This repository was archived by the owner on Aug 13, 2018. It is now read-only.

Meaningless recursion in pytram Estimator base class #46

@franknoe

Description

@franknoe

in the Estimator base class we have:

    @property
    def pi_i(self):
        return np.exp(-self.f_i)

    @property
    def f_i( self ):
        return -np.log(self.pi_i)

and

    @property
    def pi_K_i(self):
        return np.exp(-self.f_K_i)

    @property
    def f_K_i(self):
        return -np.log(self.pi_K_i)

which are endless recursions and don't do anything. I guess they are effectively never called because they are overridden in the base class, but then at least one of the two should have no implementation and raise a NotImplementedError when called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions