scikit-learn-intelex icon indicating copy to clipboard operation
scikit-learn-intelex copied to clipboard

[enhancement, testing] add initial array_api testing capabilities using array-api-strict

Open icfaust opened this issue 10 months ago • 7 comments

Description

Array-api-strict is a module which exposes only the bare essentials defined by the array-api standard. This wraps over top numpy. This will allow for testing of array_api compatability in sklearnex (only on CPU). This will be enabled by either setting get_dataframes_and_queues specifically with "array_api" in the string, or by setting a sklearn context (via set_context or config_context) with array_api_dispatch=True. As this context is available only starting in sklearn1.2, the two options are necessary. Ideally the first modules will be able to use specific new tests, and later then a context can be modified for global testing, similar to how GPU testing is done.

Changes proposed in this pull request:

  • add array-api-strict to test requirements
  • add import checks in _dataframes_support
  • extend get_dataframes_and_queues
  • extend convert_to_supported

icfaust avatar Apr 15 '24 13:04 icfaust

/intelci: run

icfaust avatar Apr 15 '24 20:04 icfaust

/intelci: run

icfaust avatar Apr 23 '24 07:04 icfaust

/intelci: run

icfaust avatar May 08 '24 12:05 icfaust

/intelci: run

ethanglaser avatar May 10 '24 17:05 ethanglaser

/intelci: run

icfaust avatar May 14 '24 04:05 icfaust

/intelci: run

icfaust avatar May 15 '24 04:05 icfaust

/intelci: run

icfaust avatar May 15 '24 20:05 icfaust

/intelci: run

icfaust avatar May 22 '24 08:05 icfaust