message: TST: add test, missing value in weighted column
diff: @@ -3220,6 +3220,20 @@ class IndicatorColumnTest(test.TestCase):
  with _initialized_session():
  self.assertAllEqual([[6., 4., 2.]], indicator_tensor.eval())
  + def test_transform_with_missing_value_in_weighted_column(self):
  + # Github issue 12583
  + ids = fc.categorical_column_with_vocabulary_list(
  + key='ids', vocabulary_list=('a', 'b', 'c'))
  + weights = fc.weighted_categorical_column(ids, 'weights')
  + indicator = fc.indicator_column(weights)
  + features = {
  + 'ids': constant_op.constant([['c', 'b', 'unknown']]),
  + 'weights': constant_op.constant([[2., 4., 6.]])
  + }
  + indicator_tensor = _transform_features(features, [indicator])[indicator]
  + with _initialized_session():
  + self.assertAllEqual([[0., 4., 2.]], indicator_tensor.eval())
  +
  def test_linear_model(self):
  animal = fc.indicator_column(
  fc.categorical_column_with_identity('animal', num_buckets=4))
  