aab60f7a1b5bc8cbeaeb37c036387bcf8cc9556c,dask_ml/wrappers.py,ParallelPostFit,fit,#ParallelPostFit#Any#Any#,80
Before Change
result = self.estimator.fit(X, y, **kwargs)
// Copy over learned attributes
attrs = {k: v for k, v in vars(result).items() if k.endswith("_")}
for k, v in attrs.items():
setattr(self, k, v)
return self
def transform(self, X):
Transform block or partition-wise for dask inputs.
After Change
logger.info("Starting fit")
result = self.estimator.fit(X, y, **kwargs)
stop = tic()
logger.info("Finished fit, %0.2f", stop - start)
// Copy over learned attributes
copy_learned_attributes(result, self)
copy_learned_attributes(result, self.estimator)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: dask/dask-ml
Commit Name: aab60f7a1b5bc8cbeaeb37c036387bcf8cc9556c
Time: 2018-06-06
Author: TomAugspurger@users.noreply.github.com
File Name: dask_ml/wrappers.py
Class Name: ParallelPostFit
Method Name: fit
Project Name: etal/cnvkit
Commit Name: e2ab4ccd6cb5e306c66182ac8ff1ad2d8183df1c
Time: 2016-10-07
Author: eric.talevich@gmail.com
File Name: cnvlib/gary.py
Class Name: GenomicArray
Method Name: _make_blank
Project Name: tensorflow/datasets
Commit Name: c4f3799d5713d467ca577a6d0593f242076c9540
Time: 2018-11-14
Author: epot@google.com
File Name: tensorflow_datasets/core/test_utils.py
Class Name: FeatureExpectationsTestCase
Method Name: test_encode_decode