3e9f883274865e71fbac8dc1ef8e4caf181eff44,python/train_test_model.py,LibsvmnusvrTrainTestModel,_train,#Any#Any#Any#,543

Before Change


        gamma = model_param.setdefault("gamma", 0.0)
        // coef0 = model_param.setdefault("coef0", 0.0)
        // tol = model_param.setdefault("tol", 0.001)
        C = model_param.setdefault("C", 1.0)
        nu = model_param.setdefault("nu", 0.5)
        // shrinking = model_param.setdefault("shrinking", True)
        cache_size= model_param.setdefault("cache_size", 200)
        // verbose= model_param.setdefault("verbose", False)

After Change


        :param xys_2d:
        :return:
        
        kernel = model_param["kernel"] if "kernel" in model_param else "rbf"
        gamma = model_param["gamma"] if "gamma" in model_param else 0.0
        C = model_param["C"] if "C" in model_param else 1.0
        nu = model_param["nu"] if "nu" in model_param else 0.5
        cache_size = model_param["cache_size"] if "cache_size" in model_param else 200
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Netflix/vmaf
Commit Name: 3e9f883274865e71fbac8dc1ef8e4caf181eff44
Time: 2016-02-18
Author: zli@netflix.com
File Name: python/train_test_model.py
Class Name: LibsvmnusvrTrainTestModel
Method Name: _train


Project Name: nilmtk/nilmtk
Commit Name: 698983cb5a2a7f5492a96dd61818bf8d0f31c231
Time: 2015-09-18
Author: jack-list@xlk.org.uk
File Name: nilmtk/disaggregate/combinatorial_optimisation.py
Class Name: CombinatorialOptimisation
Method Name: disaggregate


Project Name: Netflix/vmaf
Commit Name: 3e9f883274865e71fbac8dc1ef8e4caf181eff44
Time: 2016-02-18
Author: zli@netflix.com
File Name: python/train_test_model.py
Class Name: TrainTestModel
Method Name: __init__