Skip to content

Commit

Permalink
fix lint again
Browse files Browse the repository at this point in the history
  • Loading branch information
YJ Shi committed Sep 22, 2022
1 parent 4144bc3 commit 46507b3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions python/tvm/meta_schedule/cost_model/xgb_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,8 @@
from collections import OrderedDict
from itertools import chain as itertools_chain
from typing import TYPE_CHECKING, Any, Callable, Dict, List, NamedTuple, Optional, Tuple

# TODO: This is to suppress the FutureWarnings from older version xgboost using pandas.Int64Index
# Should be removed after TVM requires the use of xgboost >= 1.6.0
import warnings

warnings.simplefilter(action="ignore", category=FutureWarning)

import numpy as np # type: ignore

from ...contrib.tar import tar, untar
Expand Down Expand Up @@ -65,6 +60,9 @@ class OptXGBoostCustomCallback(cls, TrainingCallback): # type: ignore

from ..tune_context import TuneContext

# TODO: This is to suppress the FutureWarnings from older version xgboost using pandas.Int64Index
# Should be removed after TVM requires the use of xgboost >= 1.6.0
warnings.simplefilter(action="ignore", category=FutureWarning)

logger = logging.getLogger(__name__) # pylint: disable=invalid-name

Expand Down

0 comments on commit 46507b3

Please sign in to comment.