Fix integer/string in Integer/String Lookup docstrings

This commit is contained in:
Albert Villanova del Moral 2020-10-27 09:48:56 +01:00
parent 9c38a2aeb7
commit f771cf883c
2 changed files with 4 additions and 4 deletions

View File

@ -50,8 +50,8 @@ class IndexLookup(base_preprocessing_layer.CombinerPreprocessingLayer):
logic but is not intended to be exported as part of the Keras API. logic but is not intended to be exported as part of the Keras API.
If desired, the user can call this layer's `adapt()` method on a data set, If desired, the user can call this layer's `adapt()` method on a data set,
which will analyze the data set, determine the frequency of individual string which will analyze the data set, determine the frequency of individual
values, and create a vocabulary from them. This vocabulary can have hashable values, and create a vocabulary from them. This vocabulary can have
unlimited size or be capped, depending on the configuration options for this unlimited size or be capped, depending on the configuration options for this
layer; if there are more unique values in the input than the maximum layer; if there are more unique values in the input than the maximum
vocabulary size, the most frequent terms will be used to create the vocabulary size, the most frequent terms will be used to create the
@ -351,7 +351,7 @@ class IndexLookup(base_preprocessing_layer.CombinerPreprocessingLayer):
layer, this method will either replace it layer, this method will either replace it
Arguments: Arguments:
vocab: An array of string tokens. vocab: An array of hashable tokens.
Raises: Raises:
ValueError: If there are too many inputs, the inputs do not match, or ValueError: If there are too many inputs, the inputs do not match, or

View File

@ -32,7 +32,7 @@ class IntegerLookup(index_lookup.IndexLookup):
table-based lookup, with optional out-of-vocabulary handling. table-based lookup, with optional out-of-vocabulary handling.
If desired, the user can call this layer's `adapt()` method on a data set, If desired, the user can call this layer's `adapt()` method on a data set,
which will analyze the data set, determine the frequency of individual string which will analyze the data set, determine the frequency of individual integer
values, and create a vocabulary from them. This vocabulary can have values, and create a vocabulary from them. This vocabulary can have
unlimited size or be capped, depending on the configuration options for this unlimited size or be capped, depending on the configuration options for this
layer; if there are more unique values in the input than the maximum layer; if there are more unique values in the input than the maximum