|
@@ -5,9 +5,10 @@
|
|
@desc: 特征筛选基类
|
|
@desc: 特征筛选基类
|
|
"""
|
|
"""
|
|
import abc
|
|
import abc
|
|
-from typing import Dict, List
|
|
|
|
|
|
+from typing import Dict
|
|
|
|
|
|
from entitys import DataProcessConfigEntity, DataPreparedEntity, CandidateFeatureEntity, MetricFucEntity
|
|
from entitys import DataProcessConfigEntity, DataPreparedEntity, CandidateFeatureEntity, MetricFucEntity
|
|
|
|
+from init import warning_ignore
|
|
|
|
|
|
|
|
|
|
class FilterStrategyBase(metaclass=abc.ABCMeta):
|
|
class FilterStrategyBase(metaclass=abc.ABCMeta):
|
|
@@ -20,10 +21,7 @@ class FilterStrategyBase(metaclass=abc.ABCMeta):
|
|
|
|
|
|
jupyter = self._data_process_config.jupyter
|
|
jupyter = self._data_process_config.jupyter
|
|
if jupyter:
|
|
if jupyter:
|
|
- from pandas.core.common import SettingWithCopyWarning
|
|
|
|
- import warnings
|
|
|
|
- warnings.simplefilter(action="ignore", category=SettingWithCopyWarning)
|
|
|
|
- warnings.simplefilter(action="ignore", category=RuntimeWarning)
|
|
|
|
|
|
+ warning_ignore()
|
|
|
|
|
|
@property
|
|
@property
|
|
def data_process_config(self):
|
|
def data_process_config(self):
|