f36b62a91f612342492c4c7c1cfff52b24966537,examples/trials/sklearn/regression/main.py,,get_model,#Any#,54

Before Change



    try:
        if PARAMS["model_name"] == "SVR":
            model.kernel = PARAMS["svr_kernel"]
        elif PARAMS["model_name"] == "KNeighborsRegressor":
            model.weights = PARAMS["knr_weights"]
    except Exception as exception:
        LOG.exception(exception)

After Change


        exit(1)

    model = model_dict[PARAMS["model_name"]]
    model.normalize = bool(PARAMS["normalize"])

    return model

def run(X_train, X_test, y_train, y_test, model):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: microsoft/nni
Commit Name: f36b62a91f612342492c4c7c1cfff52b24966537
Time: 2020-04-17
Author: shinyang@microsoft.com
File Name: examples/trials/sklearn/regression/main.py
Class Name:
Method Name: get_model


Project Name: NifTK/NiftyNet
Commit Name: 8a5eb9a32b96ee67fc8af1813ceb7cbc02f0b4a7
Time: 2018-05-08
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/sampler_random_vector.py
Class Name: RandomVectorSampler
Method Name: __init__


Project Name: ray-project/ray
Commit Name: cb919c5e5c151f87616850c056402beefd5f7ff6
Time: 2020-09-04
Author: rkooo567@gmail.com
File Name: streaming/python/runtime/transfer.py
Class Name: DataReader
Method Name: __init__