You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
data inputs and outputs is not robust against character column, and fails with Error in torch_tensor_cpp(data, dtype, device, requires_grad, pin_memory) : R type not handled#124
Open
cregouby opened this issue
Jun 25, 2023
· 1 comment
library(tabnet)
data("billboard", package="tidyr")
model<- tabnet_fit(wk1~., data=billboard)
#> Error in torch_tensor_cpp(data, dtype, device, requires_grad, pin_memory): R type not handled
Current situation
any predictor being of type
character()
makestabnet_*
fails with the following errorExpected situation
character columns shall be turned into factors with a warning to the end-user about the number of levels discovered
Workaround
use a character to factor transformation upfront using
tabnet_*
functionsCreated on 2023-06-25 with reprex v2.0.2
ReprEx
Created on 2023-06-25 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: