Learn R Programming

Clustering (version 1.7.7)

result_internal_algorithm_by_metric: Internal results by algorithm

Description

It is used for obtaining the results of an algorithm indicated as a parameter grouped by number of clusters.

Usage

result_internal_algorithm_by_metric(df, metric)

Arguments

df

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

metric

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

Value

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

Examples

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

result_internal_algorithm_by_metric(result,'Silhouette')

# }

Run the code above in your browser using DataLab