Skip to content

Commit

Permalink
update except + optional dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Palazzo committed Feb 4, 2025
1 parent fc549e6 commit 3c1010d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ dependencies = [
'copulas>=0.11.0',
'tqdm>=4.29',
'plotly>=5.19.0',
'xgboost>=1.1.0'
]

[project.urls]
Expand All @@ -56,6 +55,7 @@ torch = [
"torch>=2.2.0;python_version>='3.12'",
]
pomegranate = ['pomegranate>=0.15,<1.0']
xgboost = ['xgboost>=1.1.0']
test = [
'sdmetrics[torch]',
'pytest>=6.2.5,<7',
Expand All @@ -68,7 +68,7 @@ test = [
'pytest-runner>=2.11.1',
]
dev = [
'sdmetrics[test, torch]',
'sdmetrics[test, xgboost, torch]',

# general
'build>=1.0.0,<2',
Expand Down
3 changes: 1 addition & 2 deletions sdmetrics/single_table/data_augmentation/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
import pandas as pd
from sklearn.metrics import confusion_matrix, precision_recall_curve, precision_score, recall_score
from sklearn.preprocessing import OrdinalEncoder
from xgboost.core import XGBoostError

from sdmetrics.single_table.data_augmentation._libomp_installation import install_libomp

try:
from xgboost import XGBClassifier
except XGBoostError:
except:
install_libomp()
from xgboost import XGBClassifier

Expand Down

0 comments on commit 3c1010d

Please sign in to comment.