I find it misleading trying to use embed() on a sparse matrix and don't get an error. After an investigation, I see a call of as.matrix() on my sparse matrix. I think it's reasonable to throw an error preventing a memory explosion. Even more, the call as.matrix() assumes a user can pass something else and the result can be unexpected. It's dangerous and in some point of view, in most cases, useless.
I find it misleading trying to use
embed()on a sparse matrix and don't get an error. After an investigation, I see a call ofas.matrix()on my sparse matrix. I think it's reasonable to throw an error preventing a memory explosion. Even more, the callas.matrix()assumes a user can pass something else and the result can be unexpected. It's dangerous and in some point of view, in most cases, useless.