Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

expand_dims

Expand dimensions of an array


Description

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.

Usage

expand_dims(a, axis = 0)

Arguments

a

array to expand

axis

position (amongst axes) where new axis is to be inserted.

Author(s)

Taylor B. Arnold, taylor.arnold@acm.org

References

See Also


kerasR

R Interface to the Keras Deep Learning Library

v0.6.1
LGPL-2
Authors
Taylor Arnold [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.