Skip to content

Commit

Permalink
Ignore numba warnings in cli.
Browse files Browse the repository at this point in the history
  • Loading branch information
loucerac committed May 15, 2023
1 parent 27b3090 commit a9b0d13
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions drexml/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,20 @@
import shutil
import subprocess
import sys
import warnings

import click
import joblib
from numba.core.errors import NumbaDeprecationWarning, NumbaPendingDeprecationWarning

with warnings.catch_warnings():
warnings.filterwarnings(
"ignore", module="shap", message="IPython could not be loaded!"
)
warnings.filterwarnings("ignore", module="shap", category=NumbaDeprecationWarning)
warnings.filterwarnings(
"ignore", module="shap", category=NumbaPendingDeprecationWarning
)

from drexml.plotting import plot_metrics
from drexml.utils import (
Expand Down
5 changes: 5 additions & 0 deletions drexml/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,16 @@

import joblib
import pandas as pd
from numba.core.errors import NumbaDeprecationWarning, NumbaPendingDeprecationWarning

with warnings.catch_warnings():
warnings.filterwarnings(
"ignore", module="shap", message="IPython could not be loaded!"
)
warnings.filterwarnings("ignore", module="shap", category=NumbaDeprecationWarning)
warnings.filterwarnings(
"ignore", module="shap", category=NumbaPendingDeprecationWarning
)
import shap

from sklearn.model_selection import ShuffleSplit, train_test_split
Expand Down

0 comments on commit a9b0d13

Please sign in to comment.