result_external_algorithm_by_metric: External results by algorithm.

View source: R/app.R

result_external_algorithm_by_metricR Documentation

External 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_external_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 to evaluate.

Value

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

Examples


result = Clustering::clustering(
               df = cluster::agriculture,
               min = 4,
               max = 5,
               algorithm='gmm',
               metrics=c("Precision")
         )

Clustering::result_external_algorithm_by_metric(result,'Precision')


laperez/Clustering documentation built on April 23, 2024, 3:41 a.m.