Free Access Week - Data Engineering + BI
Data engineering and BI courses are free!
Free Access Week - Jun 2-8

Clustering (version 1.7)

pam_manhattan_method: Method that runs the pam algorithm using the Manhattan metric to make an external or internal validation of the cluster

Description

Method that runs the pam algorithm using the Manhattan metric to make an external or internal validation of the cluster

Usage

pam_manhattan_method(dt, clusters, columnClass, metric)

Arguments

clusters

number of clusters

columnClass

is an integer with the number of columns, for example if a dataset has five column, we can select column four to calculate alidation

metric

metrics avalaible in the package. The metrics implemented are: entropy, variation_information,precision,recall,f_measure,fowlkes_mallows_index,connectivity,dunn,silhouette.

data

matrix or data frame

Value

returns a list with both the internal and external evaluation of the grouping