- This topic has 7 replies, 7 voices, and was last updated 4 years, 7 months ago by .
Viewing 6 reply threads
Viewing 6 reply threads
You must be logged in to reply to this topic. Login here
Home › Forums › Data mining and machine learning › Archive 2020 › Assignment › R script for assignment 1
I run the R script for K means follow the example script
kmeans(processed.cleveland[,-14], centers = 2)
the console shown
Error in do_one(nmeth) : NA/NaN/Inf in foreign function call (arg 1)
In addition: Warning message:
In storage.mode(x) <- “double” : NAs introduced by coercion
Can anyone help me?
Hi. It seems from the error message (NA/NaN/Inf in foreign function call (arg 1)) that the error has something to do with invalid data types. Perhaps the input data is not conforming to the required input for kmeans?
Upon looking at the text content for the Cleveland CSV file, I cannot really find missing data (supposedly ,, two-commas together), so I am confused as well to what is wrong.
PAM method, rather than kmeans can still run, though.
But then, how many clusters do I really need? I asked in another post.
I think the Cleveland data had 6 rows with ‘?’ as the value for two of its attributes. I think it was for columns 12 and 13…
For me I am having issues with the Silhouette plot but hopefully can find something out 🙂
There are 303 values. When I run DIANA, result show only 302 and one is missing. Any ideas for solution
Hi,
I just submitted the script.r and MS word file for conclusion. However, I saw that it showed only the .docx file. I am not sure whether both have been uploaded and I can see only one file or it is actually that I can upload only .docx file.
Thank you K. Prakit. I have zipped the files and uploaded it.
You must be logged in to reply to this topic. Login here