hibou.data_preprocessing.split#
- hibou.preprocessing.split(*args, **kwargs)#
This function split the inputs and the targets data into two datasets: training and testing.
Parameters#
- inputs
pd.DataFrame The inputs data.
- targets
pd.DataFrame The targets data.
- timestamps
pd.DataFrame The timestamps of the data. Please note that as the inputs and targets data are supposed synchronized, you only need to pass one
timestamps.- nb_train
int The number of points into each training data sets.
- nb_test
int The number of points into each testing data sets.
- offset
int, optionnal By default:
0. The number of points to be shifted in training and evaluation sets.- display
bool, optionnal By default:
False. If set onTrue, the function will plot the targets that are used for training and testing on a figure.Note
The figure will not be showed, but saved into
{OUTPUT_DIR}/figures.
Returns#
tupleA tuple that contains two elements: training data and testing data. Each element is itself a tuple that contains three elements: inputs, targets, timestamps.
- inputs