calculate_result function

Method that returns the value or variable depending on where it is in the calculated metrics.

Method that returns the value or variable depending on where it is in the calculated metrics.

calculate_result( algorith, distance, cluster, dataset, ranking, timeExternal, entropy, variation_information, precision, recall, fowlkes_mallows_index, f_measure, timeInternal, dunn, connectivity, silhouette, variables )

Arguments

  • algorith: Algorithm name.
  • distance: Name of the metric used to calculate the distance between points.
  • cluster: Number of clusters.
  • dataset: Name of dataset.
  • ranking: Position we want to obtain from the list of variables.
  • timeExternal: Array with the external validation calculation times of the clustering.
  • entropy: Array with the calculation of the entropy for each of the variables.
  • variation_information: Array with the calculation of the variation_information for each of the variables.
  • precision: Array with the calculation of the precision for each of the variables.
  • recall: Array with the calculation of the recall for each of the variables.
  • fowlkes_mallows_index: Array with the calculation of the fowlkes_mallows_index for each of the variables.
  • f_measure: Array with the calculation of the f_measure for each of the variables.
  • timeInternal: Array with the internal validation calculation times of the clustering.
  • dunn: Array with the calculation of the dunn for each of the variables.
  • connectivity: Array with the calculation of the connectivity for each of the variables.
  • silhouette: Array with the calculation of the silhouette for each of the variables.
  • variables: True if we want to show the value of the metric calculation and false if we want to show the variable.

Returns

Returns an array with the calculation of each metric based on the indicated position.