Skip to content

Use of deprecated SciPy API #2198

@noa-weiss

Description

@noa-weiss

Issue Type

Bug

Source

source

Giskard Library Version

2.18.0

OS Platform and Distribution

WSL

Python version

3.12.4

Installed python packages

Current Behaviour?

When attempting to import giskard, the following error occurs:
`ImportError: cannot import name 'Ks_2sampResult' from 'scipy.stats.stats'`

(This happened with `from giskard import Model, Dataset, scan, testing, demo`, but persisted when running it with each of the items separately, as well).

It appears the scipy class was removed/renamed in the newer versions (according to GPT5, in recent versions, ks_2samp returns KstestResult, and Ks_2sampResult is no longer exported).

Standalone code OR list down the steps to reproduce the issue

`from giskard import Model, Dataset, scan, testing, demo`

Relevant log output

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