input_data_checks: Check Data Input

Description Usage Arguments Value

View source: R/checks.R

Description

Checks that input data for 'forward()' and 'backward()' functions are the correct format. Specifically looks for:

Usage

1

Arguments

X

input for either X_train or X_val. Expected to be a 2D numeric matrix.

y

input for either y_train or y_val. Expected to be a 1D numeric matrix. If 'y' is a character string AND X is a dataframe, it will be extracted from X.

Value

list X matrix (If X is a dataframe when input, it will be converted into a matrix. Otherwise, if all of the checks pass, it will be returned 'as is'.) y 'as is' or extracted from X (if y was a character string on input.


UBC-MDS/punisheR documentation built on May 25, 2019, 1:36 p.m.