75f5092acce738243f4d8dd258bbaa56fcb9f816,sklearn/sklearn-template/template/trainer/model.py,,get_estimator,#Any#,31

Before Change


      ("numeric", numeric_transformer,
       boolean_mask(metadata.NUMERIC_FEATURES)),
      ("numeric_log", numeric_log_transformer,
       boolean_mask(metadata.NUMERIC_FEATURES)),
      ("numeric_bin", numeric_bin_transformer,
       boolean_mask(metadata.NUMERIC_FEATURES)),
      ("categorical", categorical_transformer,

After Change



  feature_columns = metadata.FEATURE_COLUMNS
  numerical_names = metadata.NUMERIC_FEATURES
  categorical_names = metadata.CATEGORICAL_FEATURES

  boolean_mask = functools.partial(utils.boolean_mask, feature_columns)
  numerical_boolean = boolean_mask(numerical_names)
  categorical_boolean = boolean_mask(categorical_names)

  transform_list = []
  // If there exist numerical columns
  if any(numerical_boolean):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: GoogleCloudPlatform/cloudml-samples
Commit Name: 75f5092acce738243f4d8dd258bbaa56fcb9f816
Time: 2019-05-20
Author: luoshixin@google.com
File Name: sklearn/sklearn-template/template/trainer/model.py
Class Name:
Method Name: get_estimator


Project Name: NifTK/NiftyNet
Commit Name: 368f7590b977250cbdc4dc49799084e797f53fe2
Time: 2018-02-21
Author: eli.gibson@gmail.com
File Name: niftynet/layer/channel_sparse_convolution.py
Class Name: ChannelSparseConvLayer
Method Name: layer_op


Project Name: NifTK/NiftyNet
Commit Name: c75c1160a5675edb1f52c13d926bbbc584eb80fd
Time: 2018-04-18
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/channel_sparse_convolution.py
Class Name: ChannelSparseConvLayer
Method Name: layer_op