Suppose all my variables in X are categorical. How do I use hierNet in R to build a sparse two-way interaction model?
I have tried converting all my variables into dummy variables (one-hot encoding). However, during some of my hierNet run in R, it gives me the following error:
Error in compute.interactions.c(x, diagonal = diagonal) :
NA/NaN/Inf in foreign function call (arg 1)
Is it the right approach to convert all variables into dummy variables? Why does the above error occur?
Suppose all my variables in X are categorical. How do I use hierNet in R to build a sparse two-way interaction model?
I have tried converting all my variables into dummy variables (one-hot encoding). However, during some of my hierNet run in R, it gives me the following error:
Is it the right approach to convert all variables into dummy variables? Why does the above error occur?