LostTech.TensorFlow : API Documentation

Type tf.keras.datasets.imdb

Namespace tensorflow

Public static methods

object get_word_index(string path)

Retrieves the dictionary mapping word indices back to words.
Parameters
string path
where to cache the data (relative to `~/.keras/dataset`).
Returns
object
The word index dictionary.

object get_word_index_dyn(ImplicitContainer<T> path)

Retrieves the dictionary mapping word indices back to words.
Parameters
ImplicitContainer<T> path
where to cache the data (relative to `~/.keras/dataset`).
Returns
object
The word index dictionary.

ValueTuple<object, object> load_data(string path, object num_words, int skip_top, object maxlen, int seed, int start_char, int oov_char, int index_from, IDictionary<string, object> kwargs)

Loads the IMDB dataset.
Parameters
string path
where to cache the data (relative to `~/.keras/dataset`).
object num_words
max number of words to include. Words are ranked by how often they occur (in the training set) and only the most frequent words are kept
int skip_top
skip the top N most frequently occurring words (which may not be informative).
object maxlen
sequences longer than this will be filtered out.
int seed
random seed for sample shuffling.
int start_char
The start of a sequence will be marked with this character. Set to 1 because 0 is usually the padding character.
int oov_char
words that were cut out because of the `num_words` or `skip_top` limit will be replaced with this character.
int index_from
index actual words with this index and higher.
IDictionary<string, object> kwargs
Used for backwards compatibility.
Returns
ValueTuple<object, object>
Tuple of Numpy arrays: `(x_train, y_train), (x_test, y_test)`.

object load_data_dyn(ImplicitContainer<T> path, object num_words, ImplicitContainer<T> skip_top, object maxlen, ImplicitContainer<T> seed, ImplicitContainer<T> start_char, ImplicitContainer<T> oov_char, ImplicitContainer<T> index_from, IDictionary<string, object> kwargs)

Loads the IMDB dataset.
Parameters
ImplicitContainer<T> path
where to cache the data (relative to `~/.keras/dataset`).
object num_words
max number of words to include. Words are ranked by how often they occur (in the training set) and only the most frequent words are kept
ImplicitContainer<T> skip_top
skip the top N most frequently occurring words (which may not be informative).
object maxlen
sequences longer than this will be filtered out.
ImplicitContainer<T> seed
random seed for sample shuffling.
ImplicitContainer<T> start_char
The start of a sequence will be marked with this character. Set to 1 because 0 is usually the padding character.
ImplicitContainer<T> oov_char
words that were cut out because of the `num_words` or `skip_top` limit will be replaced with this character.
ImplicitContainer<T> index_from
index actual words with this index and higher.
IDictionary<string, object> kwargs
Used for backwards compatibility.
Returns
object
Tuple of Numpy arrays: `(x_train, y_train), (x_test, y_test)`.

Public properties

PythonFunctionContainer get_word_index_fn get;

PythonFunctionContainer load_data_fn get;