Skip to content

Fixes Array API with onnxruntime #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 5, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
disable one test for older version of sklearn
  • Loading branch information
xadupre committed Jun 4, 2023
commit 0775586c9a3a24ed31523b836c01d6755fbcedda
7 changes: 6 additions & 1 deletion _unittests/ut_ort/test_sklearn_array_api_ort.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import unittest
import numpy as np
from packaging.version import Version
from onnx.defs import onnx_opset_version
from sklearn import config_context
from sklearn import config_context, __version__ as sklearn_version
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
from onnx_array_api.ext_test_case import ExtTestCase
from onnx_array_api.ort.ort_tensors import EagerOrtTensor, OrtTensor
Expand All @@ -19,6 +20,10 @@ def take(self, X, indices, *, axis):


class TestSklearnArrayAPIOrt(ExtTestCase):
@unittest.skipIf(
Version(sklearn_version) <= Version("1.2.2"),
reason="reshape ArrayAPI not followed",
)
def test_sklearn_array_api_linear_discriminant(self):
from sklearn.utils._array_api import _ArrayAPIWrapper

Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ml-dtypes
onnxmltools
onnxruntime
openpyxl
packaging
pandas
psutil
pyquickhelper
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy