Closed xcvil closed 1 year ago
Hi @xcvil ,
tsai
can work with tensors in some cases, but it's always safer to use arrays as inputs. So your proposed solution looks fine to me.
X = X.numpy().astype(np.float64)
y = y.numpy().astype(np.int64)
Closing this issue due to lack of activity and progress. If necessary please, create a new one.
Hi TSAI contributors,
I would like to create my own datasets with torch.Tensor data:
and after
check_data(X, y, splits)
, I gotThen I run
and got
My
y
looks liketensor([0, 0, 0, ..., 1, 1, 1])
.If I add
everything works!
Thanks a lot!