Home
last modified time | relevance | path

Searched refs:feature_column (Results 1 – 25 of 105) sorted by relevance

12345

/external/tensorflow/tensorflow/contrib/layers/python/layers/
Dfeature_column_ops_test.py26 from tensorflow.contrib.layers.python.layers import feature_column
30 from tensorflow.python.feature_column import feature_column as fc_core
49 real_valued = feature_column.real_valued_column("price")
56 sparse_real_valued = feature_column._real_valued_var_len_column(
74 sparse_real_valued = feature_column._real_valued_var_len_column(
90 bucket = feature_column.bucketized_column(
91 feature_column.real_valued_column("price"), boundaries=[0., 10., 100.])
104 bucket = feature_column.bucketized_column(
105 feature_column.real_valued_column("price", 2),
116 bucket = feature_column.bucketized_column(
[all …]
Dfeature_column_ops.py26 from tensorflow.contrib.layers.python.layers import feature_column as fc
829 def transform(self, feature_column): argument
842 logging.debug('Transforming feature_column %s', feature_column)
843 if feature_column in self._columns_to_tensors:
845 return self._columns_to_tensors[feature_column]
847 feature_column.insert_transformed_feature(self._columns_to_tensors)
849 if feature_column not in self._columns_to_tensors:
851 feature_column.name))
853 return self._columns_to_tensors[feature_column]
885 def _get_parent_columns(feature_column): argument
[all …]
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
Ddnn_linear_combined_test.py27 from tensorflow.contrib.layers.python.layers import feature_column
39 from tensorflow.python.feature_column import feature_column as fc_core
114 one_hot_language = feature_column.one_hot_column(
115 feature_column.sparse_column_with_hash_bucket('language', 10))
142 embedding_language = feature_column.embedding_column(
143 feature_column.sparse_column_with_hash_bucket('language', 10),
146 embedding_wire = feature_column.embedding_column(
147 feature_column.sparse_column_with_hash_bucket('wire', 10),
211 feature_column.real_valued_column('feature', dimension=4)]
212 bucketized_feature = [feature_column.bucketized_column(
[all …]
Dsvm_test.py21 from tensorflow.contrib.layers.python.layers import feature_column
40 feature1 = feature_column.real_valued_column('feature1')
41 feature2 = feature_column.real_valued_column('feature2')
66 feature1 = feature_column.real_valued_column('feature1')
67 feature2 = feature_column.real_valued_column('feature2')
98 multi_dim_feature = feature_column.real_valued_column(
121 feature1 = feature_column.real_valued_column('feature1')
122 feature2 = feature_column.real_valued_column('feature2')
149 feature1 = feature_column.real_valued_column('feature1')
150 feature2 = feature_column.real_valued_column('feature2')
[all …]
Ddnn_test.py27 from tensorflow.contrib.layers.python.layers import feature_column
41 from tensorflow.python.feature_column import feature_column as fc_core
58 one_hot_language = feature_column.one_hot_column(
59 feature_column.sparse_column_with_hash_bucket('language', 10))
83 embedding_language = feature_column.embedding_column(
84 feature_column.sparse_column_with_hash_bucket('language', 10),
87 embedding_wire = feature_column.embedding_column(
88 feature_column.sparse_column_with_hash_bucket('wire', 10),
132 embedding_language = feature_column.embedding_column(
133 feature_column.sparse_column_with_hash_bucket('language', 10),
[all …]
Dstate_saving_rnn_estimator_test.py26 from tensorflow.contrib.layers.python.layers import feature_column
76 feature_column.real_valued_column(
78 feature_column.real_valued_column(
108 feature_column.real_valued_column(
110 feature_column.real_valued_column(
139 feature_column.real_valued_column(
141 feature_column.real_valued_column(
176 wire_cast = feature_column.sparse_column_with_keys(
179 feature_column.embedding_column(
222 wire_cast = feature_column.sparse_column_with_keys(
[all …]
Dnonlinear_test.py23 from tensorflow.contrib.layers.python.layers import feature_column
40 feature_columns = [feature_column.real_valued_column("", dimension=4)]
66 feature_columns = [feature_column.real_valued_column("", dimension=13)]
96 feature_columns = [feature_column.real_valued_column("", dimension=4)]
108 feature_columns = [feature_column.real_valued_column("", dimension=4)]
120 feature_columns = [feature_column.real_valued_column("", dimension=4)]
Dcomposable_model_test.py22 from tensorflow.contrib.layers.python.layers import feature_column
131 language = feature_column.sparse_column_with_hash_bucket('language', 100)
132 age = feature_column.real_valued_column('age')
157 language = feature_column.sparse_column_with_hash_bucket('language', 100)
158 age = feature_column.sparse_column_with_hash_bucket('age', 2)
172 cont_features = [feature_column.real_valued_column('feature', dimension=4)]
/external/tensorflow/tensorflow/examples/get_started/regression/
Ddnn_regression.py62 body_style = tf.feature_column.categorical_column_with_vocabulary_list(
64 make = tf.feature_column.categorical_column_with_hash_bucket(
68 tf.feature_column.numeric_column(key="curb-weight"),
69 tf.feature_column.numeric_column(key="highway-mpg"),
74 tf.feature_column.indicator_column(body_style),
77 tf.feature_column.embedding_column(make, dimension=3),
Dcustom_regression.py33 top = tf.feature_column.input_layer(features, params["feature_columns"])
117 body_style = tf.feature_column.categorical_column_with_vocabulary_list(
119 make = tf.feature_column.categorical_column_with_hash_bucket(
123 tf.feature_column.numeric_column(key="curb-weight"),
124 tf.feature_column.numeric_column(key="highway-mpg"),
129 tf.feature_column.indicator_column(body_style),
132 tf.feature_column.embedding_column(make, dimension=3),
Dlinear_regression_categorical.py65 body_style_column = tf.feature_column.categorical_column_with_vocabulary_list(
73 make_column = tf.feature_column.categorical_column_with_hash_bucket(
78 tf.feature_column.numeric_column(key="curb-weight"),
79 tf.feature_column.numeric_column(key="highway-mpg"),
/external/tensorflow/tensorflow/python/estimator/canned/
Ddnn_testing_utils.py36 from tensorflow.python.feature_column import feature_column
244 feature_column.numeric_column(
434 feature_column.numeric_column('age'),
435 feature_column.numeric_column('height')
471 feature_column.numeric_column(
508 feature_column.numeric_column(
689 feature_column.numeric_column('age'),
690 feature_column.numeric_column('height')
745 city = feature_column.embedding_column(
746 feature_column.categorical_column_with_vocabulary_list(
[all …]
Ddnn_linear_combined_test.py37 from tensorflow.python.feature_column import feature_column
228 feature_column.numeric_column('x', shape=(input_dimension,))]
230 feature_column.numeric_column('x', shape=(input_dimension,))]
256 feature_spec = feature_column.make_parse_example_spec(feature_columns)
491 feature_column.numeric_column('x', shape=(input_dimension,))]
493 feature_column.numeric_column('x', shape=(input_dimension,))]
519 feature_spec = feature_column.make_parse_example_spec(feature_columns)
682 x_column = feature_column.numeric_column('x')
718 x_column = feature_column.numeric_column('x')
759 age = feature_column.numeric_column('age')
[all …]
/external/tensorflow/tensorflow/contrib/boosted_trees/estimator_batch/
Dcustom_export_strategy.py144 feature_id = split.feature_column
153 feature_id = split.feature_column + num_dense
170 feature_id = split.feature_column + num_dense
184 feature_id = split.feature_column + num_dense + num_sparse_float
210 split_column = feature_names[split.feature_column]
214 feature_names[split.feature_column + num_dense_floats],
219 feature_names[split.feature_column + num_dense_floats],
223 split_column = feature_names[split.feature_column + num_dense_floats +
227 split_column = feature_names[split.feature_column + num_dense_floats +
/external/tensorflow/tensorflow/contrib/kernel_methods/python/
Dkernel_estimators.py82 for feature_column in kernel_mappers_dict:
83 column_name = feature_column.name
85 …if not isinstance(feature_column, layers.feature_column._RealValuedColumn): # pylint: disable=pro…
92 column_kernel_mappers = kernel_mappers_dict[feature_column]
95 layers.feature_column.real_valued_column(mapped_column_name, new_dim))
/external/tensorflow/tensorflow/docs_src/tutorials/
Dwide_and_deep.md66 age = tf.feature_column.numeric_column('age')
67 education_num = tf.feature_column.numeric_column('education_num')
68 capital_gain = tf.feature_column.numeric_column('capital_gain')
69 capital_loss = tf.feature_column.numeric_column('capital_loss')
70 hours_per_week = tf.feature_column.numeric_column('hours_per_week')
72 education = tf.feature_column.categorical_column_with_vocabulary_list(
78 marital_status = tf.feature_column.categorical_column_with_vocabulary_list(
83 relationship = tf.feature_column.categorical_column_with_vocabulary_list(
88 workclass = tf.feature_column.categorical_column_with_vocabulary_list(
94 occupation = tf.feature_column.categorical_column_with_hash_bucket(
[all …]
/external/tensorflow/tensorflow/docs_src/get_started/
Dfeature_columns.md12 @{tf.feature_column.numeric_column}). Although numerical feature columns model
62 @{tf.feature_column} module. This document explains nine of the functions in
78 The Iris classifier calls the @{tf.feature_column.numeric_column} function for
93 numeric_feature_column = tf.feature_column.numeric_column(key="SepalLength")
101 numeric_feature_column = tf.feature_column.numeric_column(key="SepalLength",
111 vector_feature_column = tf.feature_column.numeric_column(key="Bowling",
115 matrix_feature_column = tf.feature_column.numeric_column(key="MyMatrix",
122 create a @{tf.feature_column.bucketized_column$bucketized column}. For
159 numeric_feature_column = tf.feature_column.numeric_column("Year")
162 bucketized_feature_column = tf.feature_column.bucketized_column(
[all …]
/external/tensorflow/tensorflow/python/estimator/
DBUILD164 "//tensorflow/python/feature_column",
206 "//tensorflow/python/feature_column",
248 "//tensorflow/python/feature_column",
269 "//tensorflow/python/feature_column",
301 "//tensorflow/python/feature_column",
333 "//tensorflow/python/feature_column",
359 "//tensorflow/python/feature_column",
393 "//tensorflow/python/feature_column",
498 "//tensorflow/python/feature_column",
512 "//tensorflow/python/feature_column",
[all …]
/external/tensorflow/tensorflow/contrib/boosted_trees/lib/trees/
Ddecision_tree.cc42 node_id = example.dense_float_features[split.feature_column()] <= in Traverse()
52 example.sparse_float_features[split.feature_column()]; in Traverse()
68 example.sparse_float_features[split.feature_column()]; in Traverse()
82 example.sparse_int_features[split.feature_column()]; in Traverse()
94 example.sparse_int_features[split.feature_column()]) { in Traverse()
/external/tensorflow/tensorflow/python/feature_column/
DBUILD26 ":feature_column",
32 name = "feature_column",
33 srcs = ["feature_column.py"],
79 ":feature_column",
/external/tensorflow/tensorflow/contrib/linear_optimizer/python/
Dsdca_optimizer.py140 …if isinstance(column, layers.feature_column._RealValuedColumn): # pylint: disable=protected-access
158 …elif isinstance(column, layers.feature_column._BucketizedColumn): # pylint: disable=protected-acc…
178 layers.feature_column._CrossedColumn, # pylint: disable=protected-access
179 layers.feature_column._SparseColumn)): # pylint: disable=protected-access
189 …elif isinstance(column, layers.feature_column._WeightedSparseColumn): # pylint: disable=protected…
/external/tensorflow/tensorflow/contrib/boosted_trees/python/kernel_tests/
Dsplit_handler_ops_test.py90 self.assertEqual(0, split_node.feature_column)
106 self.assertEqual(0, split_node.feature_column)
147 self.assertEqual(0, split_node.feature_column)
241 self.assertEqual(0, split_node.split.feature_column)
264 self.assertEqual(0, split_node.split.feature_column)
374 self.assertEqual(0, split_node.split.feature_column)
397 self.assertEqual(0, split_node.split.feature_column)
448 self.assertEqual(0, split_node.split.feature_column)
506 self.assertEqual(0, split_node.feature_column)
541 self.assertEqual(0, split_node.feature_column)
[all …]
/external/tensorflow/tensorflow/contrib/estimator/python/estimator/
Ddnn_linear_combined_test.py34 from tensorflow.python.feature_column import feature_column
152 feature_column.numeric_column('x', shape=(input_dimension,))]
154 feature_column.numeric_column('x', shape=(input_dimension,))]
180 feature_spec = feature_column.make_parse_example_spec(feature_columns)
Dlinear_test.py33 from tensorflow.python.feature_column import feature_column
90 feature_column.numeric_column('x', shape=(input_dimension,))]
113 feature_spec = feature_column.make_parse_example_spec(feature_columns)
Ddnn_test.py33 from tensorflow.python.feature_column import feature_column
89 feature_column.numeric_column('x', shape=(input_dimension,))]
113 feature_spec = feature_column.make_parse_example_spec(feature_columns)

12345