View source: R/aided_chatgpt.R
from_tensor_slices | R Documentation |
This function converts a data frame or matrix into row-wise slices, similar to TensorFlow's 'from_tensor_slices()'.
from_tensor_slices(data)
data |
A data frame or matrix to be converted into slices. |
A list of slices, each corresponding to a row of the input data.
df <- data.frame(A = 1:3, B = c("x", "y", "z"))
from_tensor_slices(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.