View source: R/preprocessing.R
expand_dims | R Documentation |
Expand the shape of an array by inserting a new axis, corresponding to a given position in the array shape. Useful when predicting a model based on a single input.
expand_dims(a, axis = 0)
a |
array to expand |
axis |
position (amongst axes) where new axis is to be inserted. |
Taylor B. Arnold, taylor.arnold@acm.org
Chollet, Francois. 2015. Keras: Deep Learning library for Theano and TensorFlow.
Other preprocessing: Tokenizer
,
img_to_array
, load_img
,
one_hot
, pad_sequences
,
text_to_word_sequence
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.