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
I've tried to use fviz_nbclust function. Based on the help page, it should takes an object x (matrixor data.frame). However, it's also possible to put there dist object and to get different results:
I've checked the source code and found out that inside the function fviz_nbclust every x object is transformed to dist object. Maybe the better way is to transform only matrixand data.frameobject and not transforming dist. Alternatively (but probably not so good) is to forbid dist object as an input.
What do you think?
The text was updated successfully, but these errors were encountered:
Hi @kassambara,
thanks for the answer. Yes, you probably right about the best option.
Best regards,
J.
PS Correct me if I'm wrong - pam accept dist object also (without having an original matrix). On the other hand clara needs to have an original matrix...
Hi!
I've tried to use
fviz_nbclust
function. Based on the help page, it should takes an object x (matrix
ordata.frame
). However, it's also possible to put theredist
object and to get different results:I've checked the source code and found out that inside the function
fviz_nbclust
everyx
object is transformed todist
object. Maybe the better way is to transform onlymatrix
anddata.frame
object and not transformingdist
. Alternatively (but probably not so good) is to forbiddist
object as an input.What do you think?
The text was updated successfully, but these errors were encountered: