Skip to content

Commit

Permalink
pandas warning bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rkansal47 committed Mar 7, 2024
1 parent eaaa286 commit 982cf41
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/HHbbVV/postprocessing/TrainBDT.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,18 @@
import utils
import xgboost as xgb
from hist import Hist
from pandas.errors import SettingWithCopyWarning
from sklearn.metrics import roc_curve
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import LabelEncoder

from HHbbVV.hh_vars import data_key, jec_shifts, jec_vars, jmsr_shifts, jmsr_vars, years
from HHbbVV.run_utils import add_bool_arg

try:
from pandas.errors import SettingWithCopyWarning
except:
from pandas.core.common import SettingWithCopyWarning

# ignore these because they don't seem to apply
warnings.simplefilter(action="ignore", category=SettingWithCopyWarning)

Expand Down

0 comments on commit 982cf41

Please sign in to comment.