x3p_to_tensor: Create Tensor from 'x3p' object

View source: R/x3p_to_tensor.R

x3p_to_tensorR Documentation

Create Tensor from 'x3p' object

Description

This function takes a single 'x3p' object or multiple and creates a tensor used for training Deep Learning Algorithms

Usage

x3p_to_tensor(
  df,
  array_dim,
  dim1,
  dim2,
  dim3,
  dim4,
  multiple = FALSE,
  select_col
)

Arguments

df

object of class 'x3p' or a tibble style dataframe containing 'x3p' objects

array_dim

specify the tensor dimension

dim1

dimension 1, x

dim2

dimension 2, y

dim3

dimension 3, z, surface values

dim4

dimension 4, color scale

multiple

clarify whether user is working with a single 'x3p' object or multiple in a tibble style dataframe

select_col

if multiple = TRUE, location of the x3p objects

Value

A array/tensor with user specificed dimensions


xazip/x3pLeaX documentation built on July 14, 2022, 5:37 p.m.