GroupIndex#

class skrough.structs.group_index.GroupIndex(index: ndarray[Any, dtype[int64]], n_groups: int)[source]#

Bases: object

Methods

__init__(index, n_groups)

Method generated by attrs for class GroupIndex.

compress()

create_empty()

create_uniform(size)

from_data(x, x_counts[, attrs])

Split objects into groups according to values on given attributes

from_index(index[, compress])

get_disorder_score(values, values_count, ...)

Compute disorder score for the given grouping of objects (into equivalence classes).

get_disorder_score_after_split(split_values, ...)

get_distribution(values, values_count)

It is up to the user to ensure that values_count correctly represents values.

split(values, values_count[, compress])

Split groups of objects into finer groups according to values on a single splitting attribute

Attributes

index

index that assigns objects (by their positions in the index) to groups

n_groups

number of groups

n_objs

Number of objects described by this group index.