I want to cluster some data in R with library from Python (pyclustering
).
I am using reticulate
package to do this:
library(reticulate)
# create some random array
np <- import("numpy", convert = FALSE)
dat <- np$random$rand(100,2)
# clustering with CURE
clus_cure <- import("pyclustering.cluster.cure")
clus_res <- clus_cure$cure(dat, 2)
clus_res$get_clusters()
But it returns NULL
.
Please, where is a problem?