diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2016-11-21 17:23:17 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-11-21 17:42:26 -0800 |
commit | 49874f43d8a2385c61b9b4e11eabc50d9d692201 (patch) | |
tree | 4b89a10799a5d3a645cae5a25338e24b65321554 | |
parent | 2a6ae2bc973025ad889bed410c941ac015a268dc (diff) |
Update generated Python Op docs.
Change: 139852629
-rw-r--r-- | tensorflow/g3doc/api_docs/python/contrib.layers.md | 16 | ||||
-rw-r--r-- | tensorflow/g3doc/api_docs/python/functions_and_classes/shard5/tf.contrib.layers.scattered_embedding_column.md (renamed from tensorflow/g3doc/api_docs/python/functions_and_classes/shard1/tf.contrib.layers.hashed_embedding_column.md) | 16 | ||||
-rw-r--r-- | tensorflow/g3doc/api_docs/python/index.md | 2 |
3 files changed, 29 insertions, 5 deletions
diff --git a/tensorflow/g3doc/api_docs/python/contrib.layers.md b/tensorflow/g3doc/api_docs/python/contrib.layers.md index 6fc2f28632..58fadf863a 100644 --- a/tensorflow/g3doc/api_docs/python/contrib.layers.md +++ b/tensorflow/g3doc/api_docs/python/contrib.layers.md @@ -1263,13 +1263,25 @@ Creates an `_EmbeddingColumn` for feeding sparse data into a DNN. - - - -### `tf.contrib.layers.hashed_embedding_column(column_name, size, dimension, combiner=None, initializer=None)` {#hashed_embedding_column} +### `tf.contrib.layers.scattered_embedding_column(column_name, size, dimension, combiner=None, initializer=None)` {#scattered_embedding_column} Creates an embedding column of a sparse feature using parameter hashing. The i-th embedding component of a value v is found by retrieving an embedding weight whose index is a fingerprint of the pair (v,i). +An embedding column with sparse_column_with_hash_bucket such as + embedding_column( + sparse_column_with_hash_bucket(column_name, bucket_size), + dimension) + +could be replaced by + scattered_embedding_column( + column_name, size=bucket_size * dimension, dimension=dimension) + +for the same number of embedding parameters and hopefully reduced impact of +collisions with a cost of slowing down training. + ##### Args: @@ -1289,7 +1301,7 @@ embedding weight whose index is a fingerprint of the pair (v,i). ##### Returns: - A _HashedEmbeddingColumn. + A _ScatteredEmbeddingColumn. ##### Raises: diff --git a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard1/tf.contrib.layers.hashed_embedding_column.md b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard5/tf.contrib.layers.scattered_embedding_column.md index ac6364f908..979d06754d 100644 --- a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard1/tf.contrib.layers.hashed_embedding_column.md +++ b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard5/tf.contrib.layers.scattered_embedding_column.md @@ -1,10 +1,22 @@ -### `tf.contrib.layers.hashed_embedding_column(column_name, size, dimension, combiner=None, initializer=None)` {#hashed_embedding_column} +### `tf.contrib.layers.scattered_embedding_column(column_name, size, dimension, combiner=None, initializer=None)` {#scattered_embedding_column} Creates an embedding column of a sparse feature using parameter hashing. The i-th embedding component of a value v is found by retrieving an embedding weight whose index is a fingerprint of the pair (v,i). +An embedding column with sparse_column_with_hash_bucket such as + embedding_column( + sparse_column_with_hash_bucket(column_name, bucket_size), + dimension) + +could be replaced by + scattered_embedding_column( + column_name, size=bucket_size * dimension, dimension=dimension) + +for the same number of embedding parameters and hopefully reduced impact of +collisions with a cost of slowing down training. + ##### Args: @@ -24,7 +36,7 @@ embedding weight whose index is a fingerprint of the pair (v,i). ##### Returns: - A _HashedEmbeddingColumn. + A _ScatteredEmbeddingColumn. ##### Raises: diff --git a/tensorflow/g3doc/api_docs/python/index.md b/tensorflow/g3doc/api_docs/python/index.md index 7466091756..419aac5144 100644 --- a/tensorflow/g3doc/api_docs/python/index.md +++ b/tensorflow/g3doc/api_docs/python/index.md @@ -926,7 +926,6 @@ * [`embedding_column`](../../api_docs/python/contrib.layers.md#embedding_column) * [`flatten`](../../api_docs/python/contrib.layers.md#flatten) * [`fully_connected`](../../api_docs/python/contrib.layers.md#fully_connected) - * [`hashed_embedding_column`](../../api_docs/python/contrib.layers.md#hashed_embedding_column) * [`input_from_feature_columns`](../../api_docs/python/contrib.layers.md#input_from_feature_columns) * [`joint_weighted_sum_from_feature_columns`](../../api_docs/python/contrib.layers.md#joint_weighted_sum_from_feature_columns) * [`l1_regularizer`](../../api_docs/python/contrib.layers.md#l1_regularizer) @@ -942,6 +941,7 @@ * [`real_valued_column`](../../api_docs/python/contrib.layers.md#real_valued_column) * [`repeat`](../../api_docs/python/contrib.layers.md#repeat) * [`safe_embedding_lookup_sparse`](../../api_docs/python/contrib.layers.md#safe_embedding_lookup_sparse) + * [`scattered_embedding_column`](../../api_docs/python/contrib.layers.md#scattered_embedding_column) * [`separable_convolution2d`](../../api_docs/python/contrib.layers.md#separable_convolution2d) * [`shared_embedding_columns`](../../api_docs/python/contrib.layers.md#shared_embedding_columns) * [`sparse_column_with_hash_bucket`](../../api_docs/python/contrib.layers.md#sparse_column_with_hash_bucket) |