Learn R Programming

kerasnip (version 0.1.0)

process_x_sequential: Process Predictor Input for Keras

Description

Preprocesses predictor data (x) into a format suitable for Keras models. Handles both tabular data and list-columns of arrays (e.g., for images).

Usage

process_x_sequential(x)

Value

A list containing:

  • x_proc: The processed predictor data (matrix or array).

  • input_shape: The determined input shape for the Keras model.

Arguments

x

A data frame or matrix of predictors.