cceae1fee29ec0269616e7c2364f1714a518b2c3,python/src/vmaf/core/train_test_model.py,TrainTestModel,from_file,#Any#Any#Any#Any#,338

Before Change


        train_test_model.param_dict = info_loaded["param_dict"]
        train_test_model.model_dict = info_loaded["model_dict"]

        if issubclass(model_class, LibsvmNusvrTrainTestModel):
            // == special handling of libsvmnusvr: load .model differently ==
            model = svmutil.svm_load_model(filename + ".model")
            train_test_model.model_dict["model"] = model

        return train_test_model

    def _preproc_train(self, xys):
        self.model_type = self.TYPE

After Change


        else:
            // the newly found model_class can be a different class (e.g. a subclass of cls). In this
            // case, call from_file() of that model_class.
            train_test_model = model_class.from_file(filename, logger, optional_dict2)

        return train_test_model

    @classmethod
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: Netflix/vmaf
Commit Name: cceae1fee29ec0269616e7c2364f1714a518b2c3
Time: 2018-02-28
Author: zli@netflix.com
File Name: python/src/vmaf/core/train_test_model.py
Class Name: TrainTestModel
Method Name: from_file


Project Name: google/deepvariant
Commit Name: 7dda9b4b84905534299c9557830c2d3f4389ad52
Time: 2019-03-12
Author: no-reply@google.com
File Name: third_party/nucleus/io/genomics_reader.py
Class Name: TFRecordReader
Method Name: __init__


Project Name: google/nucleus
Commit Name: 7d5a866a254cb9517ed24818b92e6f617fa4ed24
Time: 2019-03-12
Author: no-reply@google.com
File Name: nucleus/io/genomics_reader.py
Class Name: TFRecordReader
Method Name: __init__