63455151483578a69b75197c2f7d880ff89a96a2,tensorflow_transform/beam/impl.py,_RunMetaGraphDoFn,_get_passthrough_data_from_recordbatch,#_RunMetaGraphDoFn#Any#,319
Before Change
result = {}
for passthrough_key, column_index in zip(
self._passthrough_keys, self._passthrough_column_indices):
result[passthrough_key] = np.asarray(batch.column(column_index).flatten())
return result
def _handle_batch(self, batch):
self._update_metrics(batch)
After Change
result = {}
for passthrough_key, column_index in zip(self._passthrough_keys,
self._passthrough_column_indices):
passthrough_data_column = batch.column(column_index)
// the passthrough column should be of list<primitive> type with each
// sub-list being either null or of length 1.
assert (
pa.types.is_list(passthrough_data_column.type) or
pa.types.is_large_list(passthrough_data_column.type))
result[passthrough_key] = [
None if elem is None else elem[0]
for elem in passthrough_data_column.to_pylist()
]
return result
def _handle_batch(self, batch):
self._update_metrics(batch)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: tensorflow/transform
Commit Name: 63455151483578a69b75197c2f7d880ff89a96a2
Time: 2020-04-24
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/beam/impl.py
Class Name: _RunMetaGraphDoFn
Method Name: _get_passthrough_data_from_recordbatch
Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 66268ffdc847e64216114871bd4169ad7872966a
Time: 2019-04-11
Author: bodo.rueckauer@intel.com
File Name: snntoolbox/simulation/target_simulators/pyNN_target_sim.py
Class Name: SNN
Method Name: simulate
Project Name: explosion/thinc
Commit Name: 0db408d1eea2ce5c1d9b20fe61cb519e059d6cef
Time: 2017-09-15
Author: honnibal+gh@gmail.com
File Name: examples/basic_tagger.py
Class Name:
Method Name: main