getMetricsRelevancy: Get the range of each metric per cluster from the optimal...

View source: R/metricsAnalysis.R

getMetricsRelevancyR Documentation

Get the range of each metric per cluster from the optimal cluster. getMetricRangeByCluster

Description

Obtains the ranges of the metrics obtained by each optimal cluster.

Usage

getMetricsRelevancy(df, k, alpha = 0, L1 = NULL, seed = NULL)

Arguments

df

Input data frame. The first column denotes the identifier of the evaluated individuals. The remaining columns contain the metrics used to evaluate the individuals. Rows with NA values will be ignored.

k

K value (number of clusters)

alpha

0 <= alpha <= 1, the proportion of the cases to be trimmed in robust sparse K-means, see RSKC.

L1

A single L1 bound on weights (the feature weights), see RSKC.

seed

Random seed to be used.

Value

A dataframe including the min and the max value for each pair (metric, cluster).

Examples

data("ontMetrics")
metricsRelevancy = getMetricsRelevancy(ontMetrics, k=3, alpha=0.1, seed=100)
metricsRelevancy$rskc # RSKC output object
metricsRelevancy$trimmed_cases # Trimmed cases from input (row indexes)
metricsRelevancy$relevancy # Metrics relevancy table


neobernad/evaluomeR documentation built on Nov. 12, 2024, 11:29 p.m.