Suppress scikit-learn FutureWarnings from skopt imports

This commit is contained in:
hroff-1902 2019-12-10 15:45:10 +03:00
parent 25447329a0
commit 3448f86263

View File

@ -7,6 +7,7 @@ This module contains the hyperopt logic
import locale
import logging
import sys
import warnings
from collections import OrderedDict
from operator import itemgetter
from pathlib import Path
@ -19,6 +20,10 @@ from colorama import init as colorama_init
from joblib import (Parallel, cpu_count, delayed, dump, load,
wrap_non_picklable_objects)
from pandas import DataFrame
# Suppress scikit-learn FutureWarnings from skopt
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=FutureWarning)
from skopt import Optimizer
from skopt.space import Dimension