Replies: 2 comments 1 reply
-
Hi @OCsteve, from tsai.all import *
X_train, y_train, X_valid, y_valid = get_UCR_data("LSST")
X, y, splits = combine_split_data([X_train, X_valid, X_train], [y_train, y_valid, y_train])
len(splits), np.array_equal(X_train, X[splits[2]]) |
Beta Was this translation helpful? Give feedback.
1 reply
-
I’ve created an issue and added the requested functionality to tsai. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be very helpful to extend the functionality of combine_split_data() from 2-way to 3-way for numpy arrays that have already been appropriately created.
X, y, splits = combine_split_data([Xtrain, Xval], [Ytrain, Yval])
X, y, splits = combine_split_data([Xtrain, Xval, Xtest], [Ytrain, Yval, Ytest])
For use such as:
probas_val, _, preds_val = learn.get_X_preds(X[splits[1]])
probas_test, _, preds_test = learn.get_X_preds(X[splits[2]])
Beta Was this translation helpful? Give feedback.
All reactions