Skip to content

Commit

Permalink
import or skip catboost
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt711 committed Dec 11, 2024
1 parent 5b11e66 commit 0b4f5fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ runtest() {

pytest \
$plugin \
--ignore=${TEST_DIR}/test_catboost.py \
-v \
--continue-on-collection-errors \
--cache-clear \
Expand All @@ -40,7 +39,6 @@ main() {
pytest \
--compare \
-p cudf.pandas \
--ignore=${TEST_DIR}/test_catboost.py \
-v \
--continue-on-collection-errors \
--cache-clear \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
import numpy as np
import pandas as pd
import pytest
from catboost import CatBoostClassifier, CatBoostRegressor, Pool

try:
from catboost import CatBoostClassifier, CatBoostRegressor, Pool
except Exception:
pytest.skip(
"ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject"
)
from sklearn.datasets import make_classification, make_regression

rng = np.random.default_rng(seed=42)
Expand Down

0 comments on commit 0b4f5fa

Please sign in to comment.