Learn R Programming

kerasnip (version 0.1.0)

process_x_functional: Process Predictor Input for Keras (Functional API)

Description

Preprocesses predictor data (x) into a format suitable for Keras models built with the Functional API. Handles both tabular data and list-columns of arrays (e.g., for images), supporting multiple inputs.

Usage

process_x_functional(x)

Value

A list containing:

  • x_proc: The processed predictor data (matrix or array, or list of arrays).

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

Arguments

x

A data frame or matrix of predictors.