f1d0991079cceaa7ec2ba9924458063421b12e97,hypertools/tools/text2mat.py,,text2mat,#,7

Before Change


    }

    // support user defined vectorizers
    if hasattr(vectorizer, "__class__"):
        if hasattr(vectorizer, "fit_transform"):
            vectorizer_models.update({"user_model" : vectorizer})
            vectorizer = "user_model"

After Change


                               "http://scikit-learn.org/stable/data_transforms.html")

    // support user defined text model
    if ttype in ("class", "class_instance"):
        if hasattr(text_model, "fit_transform"):
            text_models.update({"user_model" : text_model})
            text_model = "user_model"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: ContextLab/hypertools
Commit Name: f1d0991079cceaa7ec2ba9924458063421b12e97
Time: 2018-01-19
Author: andrew.heusser@gmail.com
File Name: hypertools/tools/text2mat.py
Class Name:
Method Name: text2mat


Project Name: ContextLab/hypertools
Commit Name: df89e0abf24293662487be4edb7c22b9254784ed
Time: 2018-01-19
Author: andrew.heusser@gmail.com
File Name: hypertools/tools/text2mat.py
Class Name:
Method Name: text2mat


Project Name: nilmtk/nilmtk
Commit Name: c9989914c0d44f305a86494f15476faff8b6dbb4
Time: 2014-12-20
Author: nipunbatra@Nipuns-MacBook-Pro.local
File Name: nilmtk/elecmeter.py
Class Name: ElecMeter
Method Name: label


Project Name: nilmtk/nilmtk
Commit Name: c9989914c0d44f305a86494f15476faff8b6dbb4
Time: 2014-12-20
Author: nipunbatra@Nipuns-MacBook-Pro.local
File Name: nilmtk/metergroup.py
Class Name: MeterGroup
Method Name: label