Skip to content

Commit

Permalink
version
Browse files Browse the repository at this point in the history
Signed-off-by: xadupre <[email protected]>
  • Loading branch information
xadupre committed Dec 23, 2024
1 parent fc5c5d4 commit e3ac8b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ jobs:
python -c "from sklearn import __version__;print('sklearn', __version__)"
python -c "from onnxruntime import __version__;print('onnxruntime', __version__)"
python -c "from onnx import __version__;print('onnx', __version__)"
python -c "from catboost import __version__;print('catboost', __version__)"
python -c "import onnx.defs;print('onnx_opset_version', onnx.defs.onnx_opset_version())"
- name: versions lightgbm
- name: versions lightgbm, xgboost, catboost
if: matrix.os != 'macos-latest'
run: |
python -c "from lightgbm import __version__;print('lightgbm', __version__)"
python -c "from xgboost import __version__;print('xgboost', __version__)"
python -c "from catboost import __version__;print('catboost', __version__)"
- name: Run tests baseline
run: pytest --maxfail=10 --durations=10 tests/baseline
Expand Down
8 changes: 4 additions & 4 deletions tests/xgboost/test_xgboost_converters_base_score.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_xgbregressor_sparse_base_score(self):
expected = rf.predict(X).astype(np.float32).reshape((-1, 1))
expected_sparse = rf.predict(X_sp).astype(np.float32).reshape((-1, 1))
diff = np.abs(expected - expected_sparse)
self.assertNotEqual(diff.min(), diff.max())
self.assertNotEqual(diff.min(), diff.max(), atol=1e-5)

onx = convert_xgboost(
rf,
Expand Down Expand Up @@ -66,7 +66,7 @@ def test_xgbregressor_sparse_no_base_score(self):
expected = rf.predict(X).astype(np.float32).reshape((-1, 1))
expected_sparse = rf.predict(X_sp).astype(np.float32).reshape((-1, 1))
diff = np.abs(expected - expected_sparse)
self.assertNotEqual(diff.min(), diff.max())
self.assertNotEqual(diff.min(), diff.max(), atol=1e-5)

onx = convert_xgboost(
rf,
Expand Down Expand Up @@ -96,7 +96,7 @@ def test_xgbclassifier_sparse_base_score(self):
expected = rf.predict_proba(X).astype(np.float32).reshape((-1, 1))
expected_sparse = rf.predict_proba(X_sp).astype(np.float32).reshape((-1, 1))
diff = np.abs(expected - expected_sparse)
self.assertNotEqual(diff.min(), diff.max())
self.assertNotEqual(diff.min(), diff.max(), atol=1e-5)

onx = convert_xgboost(
rf,
Expand Down Expand Up @@ -126,7 +126,7 @@ def test_xgbclassifier_sparse_no_base_score(self):
expected = rf.predict_proba(X).astype(np.float32).reshape((-1, 1))
expected_sparse = rf.predict_proba(X_sp).astype(np.float32).reshape((-1, 1))
diff = np.abs(expected - expected_sparse)
self.assertNotEqual(diff.min(), diff.max())
self.assertNotEqual(diff.min(), diff.max(), atol=1e-5)

onx = convert_xgboost(
rf,
Expand Down

0 comments on commit e3ac8b7

Please sign in to comment.