687e31d276db17b4ac7bea08b01c1e5401168ca9,tensorflow_transform/tf_metadata/dataset_schema.py,Schema,__init__,#Schema#Any#,58
Before Change
def __init__(self, column_schemas=None):
if not column_schemas:
column_schemas = {}
if not isinstance(column_schemas, dict):
raise ValueError("column_schemas must be a dict.")
self._column_schemas = column_schemas
self._validate_column_schemas()
def _validate_column_schemas(self):
Validate that this Schema can be represented as a schema_pb2.Schema.
After Change
def __init__(self, column_schemas):
feature_spec = {name: spec
for name, (_, spec) in column_schemas.items()}
domains = {name: domain
for name, (domain, _) in column_schemas.items()
if domain is not None}
self._schema_proto = schema_utils.schema_from_feature_spec(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances Project Name: tensorflow/transform
Commit Name: 687e31d276db17b4ac7bea08b01c1e5401168ca9
Time: 2019-01-23
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/tf_metadata/dataset_schema.py
Class Name: Schema
Method Name: __init__
Project Name: rlworkgroup/garage
Commit Name: e4b6611cb73ef7658f028831be1aa6bd85ecbed0
Time: 2020-08-14
Author: 38871737+avnishn@users.noreply.github.com
File Name: src/garage/tf/policies/discrete_qf_derived_policy.py
Class Name: DiscreteQfDerivedPolicy
Method Name: get_action
Project Name: pyannote/pyannote-audio
Commit Name: 2fcc7e8c87bd3d8f44b491d1f43be7002a2db6d7
Time: 2019-04-08
Author: bredin@limsi.fr
File Name: pyannote/audio/labeling/tasks/base.py
Class Name: LabelingTaskGenerator
Method Name: _load_metadata