Squashing
- class arm_preprocessing.squashing.Squash
Bases:
objectSquash class.
- squash(threshold, similarity)
Squash the dataset using the specified threshold and similarity.
- Parameters:
dataset (pd.DataFrame) – Dataset to squash.
threshold (float) – Similarity threshold. Should be between 0 and 1.
similarity (str) – Similarity measure (‘euclidean’, ‘cosine’).
- Returns:
Squashed dataset.
- Return type:
pd.DataFrame