c400a50dd9e7c61a36ebcd8d96f53bdb24b98f83,lore/estimators/__init__.py,Keras,__init__,#Keras#,6

Before Change


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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: instacart/lore
Commit Name: c400a50dd9e7c61a36ebcd8d96f53bdb24b98f83
Time: 2018-01-03
Author: montanalow@users.noreply.github.com
File Name: lore/estimators/__init__.py
Class Name: Keras
Method Name: __init__


Project Name: instacart/lore
Commit Name: c400a50dd9e7c61a36ebcd8d96f53bdb24b98f83
Time: 2018-01-03
Author: montanalow@users.noreply.github.com
File Name: lore/estimators/__init__.py
Class Name: SKLearn
Method Name: __init__


Project Name: instacart/lore
Commit Name: c400a50dd9e7c61a36ebcd8d96f53bdb24b98f83
Time: 2018-01-03
Author: montanalow@users.noreply.github.com
File Name: lore/estimators/__init__.py
Class Name: XGBoost
Method Name: __init__