Skip to content

Use Scalar op property for monotonic increasing / decreasing instead of redefining them. #8259

@ricardoV94

Description

@ricardoV94

MONOTONICALLY_INCREASING_OPS = (Exp, Log, Add, Sinh, Tanh, ArcSinh, ArcCosh, ArcTanh, Erf, Sigmoid)
MONOTONICALLY_DECREASING_OPS = (Erfc, Erfcx)

We recently added them in pymc-devs/pytensor#2053

We can remove those manual definition, and instead check for the properties in the part of the code that was accessing that list. Requires a bit of refactoring

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions