93c5a8952f5a350c78243bc1ffa47b07f5f93721,tensorflow_transform/coders/example_proto_coder.py,_FixedLenFeatureHandler,__init__,#_FixedLenFeatureHandler#Any#Any#,122

Before Change


      raise ValueError("FixedLenFeature %r got default value for rank > 0, "
                       "only scalar default values are supported"
                       % (self._name,))
    if isinstance(self._default_value, list):
      raise ValueError("FixedLenFeature %r got non-scalar default value, "
                       "only scalar default values are supported" %
                       (self._name,))

After Change


      self._size *= dim
    default_value = feature_spec.default_value
    if default_value is not None:
      np_default_value = np.asarray(default_value)
      if list(np_default_value.shape) != self._shape:
        raise ValueError(
            "FixedLenFeature %r got default value with incorrect shape" %
            (self._name,))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: tensorflow/transform
Commit Name: 93c5a8952f5a350c78243bc1ffa47b07f5f93721
Time: 2017-11-22
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/coders/example_proto_coder.py
Class Name: _FixedLenFeatureHandler
Method Name: __init__


Project Name: pandas-dev/pandas
Commit Name: 6b8cc988249836dd16825b8828a861f59d17e871
Time: 2021-02-03
Author: jbrockmendel@gmail.com
File Name: pandas/core/indexes/interval.py
Class Name: IntervalIndex
Method Name: putmask


Project Name: scikit-learn/scikit-learn
Commit Name: 556eb9246d1290ea248f2e3b3581dc53e75b8061
Time: 2019-12-19
Author: thomasjpfan@gmail.com
File Name: sklearn/inspection/_partial_dependence.py
Class Name:
Method Name: plot_partial_dependence