close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 12 years ago

Last modified 12 years ago

#1617 accepted task

API hclust y clara de R

Reported by: Jorge Owned by: Jorge
Priority: highest Milestone: TOL Packages
Component: Math Version: 3.1
Severity: critical Keywords:
Cc: sdelfresno, César Pérez Álvarez, isanchez@…

Description

Se solicita la implementación de un API para invocar desde TOL a las funciones hclust y clara de R.

Change History (10)

comment:1 Changed 12 years ago by Jorge

Status: newaccepted

comment:2 Changed 12 years ago by Jorge

(In [5432]) refs #1617, paquete Rcluster, contiene una primera implementacion de hclust

comment:3 Changed 12 years ago by Jorge

Para hclust hay que calcular los representantes de los cluster, podemos usar un código similar al siguiente:

clusters = cutree(hclust(dist(USArrests)), k=5) # get 5 clusters

# function to find medoid in cluster i
clust.centroid = function(i, dat, clusters) {
    ind = (clusters == i)
    colMeans(dat[ind,])
}

sapply(unique(clusters), clust.centroid, USArrests, clusters)

comment:4 Changed 12 years ago by Jorge

(In [5434]) refs #1617, documentación de hclust, se calcula centroid o medoid de cada grupo

comment:5 Changed 12 years ago by Jorge

(In [5435]) refs #1617, API para CLARA implementado

comment:6 Changed 12 years ago by Jorge

(In [5436]) refs #1617, formato en doc

comment:7 Changed 12 years ago by Jorge

Cc: isanchez@… added

comment:8 Changed 12 years ago by Jorge

(In [5482]) refs #1617, se usan los mismos parametros por omision que R

comment:9 Changed 12 years ago by Jorge

(In [5489]) refs #1617, implementada la función ComputeEuclideanCost que calcula el coste según CLARA para la distancia euclidea

comment:10 Changed 12 years ago by Jorge

(In [5490]) refs #1617, se incluye una nueva función

Note: See TracTickets for help on using tickets.