infineac.helper#

This module contains helper functions for the infineac package.

Functions

add_context_integers(lst, m, n[, min_int, ...])

Method that adds to a list of positive integers the n subsequent and m prior integers of each integer in the list.

fill_list(lst, min, max)

Method to fill a lst with integers from min to max.

fill_list_from_mapping(lst, mapping[, value])

Fills a lst with value according to a corresponding mapping.

jaccard_similarity(list1, list2)

Calculates the Jaccard Similarity between two lists.

jaccard_similarity_lists(list1, list2)

Calculates the Jaccard Similarity between two lists of lists.

jaccard_similarity_pairwise(names, df)

Pairwise calculates the Jaccard Similarity between the columns (names) of a given Polars DataFrame (df) and returns an np.array with the corresponding means.

load_data(path)

Method to load data.

save_data(data[, path])