Skip to content

Functions and utilities #1

@verri

Description

@verri

Let's discuss here which functions the package should provide.

Based on the paper, I think the following are a must-have:

  • sledge_descriptors(X, labels, minimum_support=0): given a data frame X, where each column corresponds to a pattern and each value x_ij the presence/absence of the pattern j in the sample i, and the clustering results labels, this function returns a list of sets, each of them containing the 1-itemsets that describe a cluster (after particularization.)
  • sledge_score(X, labels, minimum_support=0): same inputs, returns a list containing the SLEDge score for each cluster.

Another optional function that I think of, is something like sledge_matrix that returns the values of S, L, E, and D for each cluster (that is, before aggregation with the harmonic mean.) However, this functionality can be incorporated in sledge_score with some trigger.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions