c400a50dd9e7c61a36ebcd8d96f53bdb24b98f83,lore/estimators/__init__.py,XGBoost,__init__,#XGBoost#,12

Before Change


class XGBoost(xgboost.XGBoost):

  def __init__(self, **kwargs):
    warnings.showwarning("Please import XGBoost with "from lore.estimators.xgboost import XGBoost"", DeprecationWarning, __file__, inspect.currentframe().f_back.f_lineno)
    super(XGBoost, self).__init__(**kwargs)

class SKLearn(sklearn.SKLearn):

After Change


class XGBoost(xgboost.XGBoost):

    def __init__(self, **kwargs):
        frame, filename, line_number, function_name, lines, index = inspect.stack()[1]
        warnings.showwarning("Please import XGBoost with "from lore.estimators.xgboost import XGBoost"", DeprecationWarning,
                             filename, line_number)
        super(XGBoost, self).__init__(**kwargs)
 
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

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: XGBoost
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: 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__