What's the efficient inverse-operation of numpy.array_split?

Viewed 6061

I'm working on cross_validation to choose hyperparameters,and I split my training data into k folds.Take one folder as my validation data,the others as training data(I will do that for k times in fact).

X_train_folds = numpy.array_split(X_train,k)

The X_tran_folds will look like this:[subarray1,subarray2,.....]

The subarrays have the same number of columns.

But how to merge the k-1 subarrays into one?

1 Answers
Related