f863a6804ba1f46c3f216c6ba75b642b9b61ad17,lore/pipelines/holdout.py,Base,encode_x,#Base#Any#,140
Before Change
encoded = OrderedDict()
for encoder in self.encoders:
transformed = encoder.transform(self.read_column(data, encoder.source_column))
if hasattr(encoder, "sequence_length"):
for i in range(encoder.sequence_length):
encoded[encoder.sequence_name(i)] = transformed.iloc[:, i]
else:
encoded[encoder.name] = transformed
for column in self.index:
encoded[column] = self.read_column(data, column)
// Using a DataFrame as a container temporarily requires double the memory,
After Change
else:
for encoder in self.encoders:
self.merged_transformed(encoded, encoder, self.transform(encoder, data) )
for column in self.index:
encoded[column] = self.read_column(data, column)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: instacart/lore
Commit Name: f863a6804ba1f46c3f216c6ba75b642b9b61ad17
Time: 2018-02-01
Author: montanalow@users.noreply.github.com
File Name: lore/pipelines/holdout.py
Class Name: Base
Method Name: encode_x
Project Name: scikit-learn-contrib/sklearn-pandas
Commit Name: 1c7a87e96c4b6180e423586193c26e5ccd2f6bfd
Time: 2015-08-02
Author: mahmoud@thehumangeo.com
File Name: sklearn_pandas/__init__.py
Class Name: DataFrameMapper
Method Name: transform
Project Name: matplotlib/matplotlib
Commit Name: d23bcea94a01a598de9619a1bf45b911120f7096
Time: 2019-01-08
Author: jklymak@gmail.com
File Name: lib/matplotlib/axis.py
Class Name: Axis
Method Name: _update_ticks