Sitelet https://github.com/tensorflow/lattice/issues/76
Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

NumPy deprecated the interpolation= argument for the quantile method #76

Description

@willbakst

https://github.com/tensorflow/lattice/blob/master/tensorflow_lattice/python/premade_lib.py#L1474

the interpolation= argument to quantile was renamed to method=, which has additional options.
Users of the modes 'nearest', 'lower', 'higher', or 'midpoint' are encouraged to review the method they used. (Deprecated NumPy 1.22)

Since method= still supports 'nearest' the fix is as simple as replacing interpolation= with method=

Although this only results in a warning, it's a simple fix and would be nice not to have the warning :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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