from tensorflow.contrib.learn.python.learn.estimators import dnn_linear_combined

                              {'TF_CONFIG': json.dumps(tf_config)}):
      config = run_config.RunConfig()
      # Because we did not start a distributed cluster, we need to pass an
      # empty ClusterSpec, otherwise the device_setter will look for
      # distributed jobs, such as "/job:ps" which are not present.
      config._cluster_spec = server_lib.ClusterSpec({})

    classifier = dnn_linear_combined.DNNLinearCombinedClassifier(
        linear_feature_columns=(sparse_feature,),
        dnn_feature_columns=(embedding_feature,),
        dnn_hidden_units=(3, 3),
        config=config)

    metrics = classifier.fit(input_fn=_input_fn, steps=_ITERS).evaluate(
