The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

"Clustering in Rapidminer and R extension"

navnav Member Posts: 28 Contributor II
edited June 2019 in Help
Hello,

I am not new of rapidminer but I am new of R extension. I need to use R for calculate same statistics for the clustering output from rapidminer operator, but I don't now how to use the cluster set of rapidminer in the R script operator (I have already use the R export operatore). In particular what I want to do is for example:

- do different clustering with rapidminer operator
- apply some statics from R script to the example set of previous step, for example randIndex, silhuette, etc

But how can I use the example set of clustering in R.

Thanks in advance to all.

Answers

  • navnav Member Posts: 28 Contributor II
    Possible that none never had the need of using R to calculate any statistics from a cluster set generated by RapidMiner operator?
  • awchisholmawchisholm RapidMiner Certified Expert, Member Posts: 458 Unicorn
    Hello

    I made a comment on my http://rapidminernotes.blogspot.com/2011/06/counting-clusters-part-r.html

    The key part is the R needed

    library(mclust)
    library(profdpm)

    ## "data" is defined as the input in the inputs
    ## each column is referred to by name using $
    ## because the input is a data frame.
    ARI = adjustedRandIndex(data$cluster1, data$cluster2)
    ARI = as.data.frame(ARI)
    pci=as.data.frame(t(pci(data$cluster1, data$cluster2)))


    ## using the variable ari sets the name of the returned data frame column
    ## and avoids having to use a rename process
    ## "x" is the output defined in the results
    ## it must be a data frame
    x = as.data.frame(cbind(ARI,pci))


    Andrew
  • navnav Member Posts: 28 Contributor II
    Thank you very much... you give me a very good starting point for my problem...
Sign In or Register to comment.