class Keras(keras.Keras):
def __init__(self, **kwargs):
warnings.showwarning("Please import Keras with "from lore.estimators.keras import Keras"", DeprecationWarning, __file__, inspect.currentframe().f_back.f_lineno)
super(Keras, self).__init__(**kwargs)
class XGBoost(xgboost.XGBoost):
After Change
class Keras(keras.Keras):
def __init__(self, **kwargs):
frame, filename, line_number, function_name, lines, index = inspect.stack()[1]
warnings.showwarning("Please import Keras with "from lore.estimators.keras import Keras"", DeprecationWarning,
filename, line_number)
super(Keras, self).__init__(**kwargs)