caa69fe696723343cc1780caf356e22eacf3c2af,sklearn/sklearn-template/template/trainer/model.py,,get_estimator,#,28
Before Change
def get_estimator(flags):
// TODO: Allow pre-processing to be configurable through flags
classifier = ensemble.RandomForestClassifier(**flags)
numeric_transformer = pipeline.Pipeline([
("imputer", impute.SimpleImputer(strategy="median")),
("scaler", preprocessing.StandardScaler()),
After Change
def get_estimator(flags):
// TODO: Allow pre-processing to be configurable through flags
classifier = ensemble.RandomForestClassifier(
n_estimators=flags.n_estimators,
max_depth=flags.max_depth,
min_samples_leaf=flags.min_samples_leaf,
criterion=flags.criterion,
)
numeric_transformer = pipeline.Pipeline([
("imputer", impute.SimpleImputer(strategy="median")),
("scaler", preprocessing.StandardScaler()),
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: GoogleCloudPlatform/cloudml-samples
Commit Name: caa69fe696723343cc1780caf356e22eacf3c2af
Time: 2019-04-01
Author: luoshixin@google.com
File Name: sklearn/sklearn-template/template/trainer/model.py
Class Name:
Method Name: get_estimator
Project Name: GoogleCloudPlatform/cloudml-samples
Commit Name: 6c84b395489c7f9a7d2f54e06b513bbe56dd60ae
Time: 2019-04-03
Author: luoshixin@google.com
File Name: sklearn/sklearn-template/template/trainer/model.py
Class Name:
Method Name: get_estimator
Project Name: mlpack/benchmarks
Commit Name: c1a5eb7b9f8ceb3acba8731cb8e6463355eede1d
Time: 2017-03-19
Author: dewangsultania@gmail.com
File Name: methods/scikit/random_forest.py
Class Name: RANDOMFOREST
Method Name: BuildModel
Project Name: mlpack/benchmarks
Commit Name: c662463204430c7559474af6c01f017dfa32d351
Time: 2017-03-17
Author: dewangsultania@gmail.com
File Name: methods/scikit/random_forest.py
Class Name: RANDOMFOREST
Method Name: BuildModel