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

Cropping

Cropping layers for 1D input (e.g. temporal sequence).


Description

It crops along the time dimension (axis 1).

Usage

Cropping1D(cropping = c(1, 1), input_shape = NULL)

Cropping2D(cropping = 0, data_format = NULL, input_shape = NULL)

Cropping3D(cropping = 0, data_format = NULL, input_shape = NULL)

Arguments

cropping

integer or pair of integers. How many units should be trimmed off at the beginning and end of the cropping dimension (axis 1). If a single value is provided, the same value will be used for both.

input_shape

only need when first layer of a model; sets the input shape of the data

data_format

A string, one of channels_last (default) or channels_first.

Author(s)

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

References


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.