Learn R Programming

Clustering (version 1.7)

result_internal_algorithm_by_metric: Internal results by algorithm

Description

Method that returns a data.frame with the algorithm and the metric indicated as parameters.

Usage

result_internal_algorithm_by_metric(df, algorithm)

Arguments

df

data matrix or data frame with the result of running the clustering algorithm.

algorithm

It's a string with the algorithm we want to evaluate your results

Value

a data.frame with the results of the algorithm indicated as parameter.

Details

The functionality of this method is to return as a result a data.frame with the algorithm indicated as a parameter along with the rest of the dissimilarity measurements and the internal evaluation metrics.

Examples

Run this code
# NOT RUN {
result = clustering(
               df = cluster::agriculture,
               min = 4,
               max = 5,
               algorithm='gmm',
               metrics=c("silhouette"),
               attributes = FALSE
         )

result_internal_algorithm_by_metric(result,'gmm')

# }

Run the code above in your browser using DataLab