cblearn is a Python package for comparison-based machine learning, which is a type of machine learning where the only available information are ordinal comparisons of datapoint similarities. These comparisons often come from human experiments in the form of triplets (A, B, C) where A is more similar to B than to C, or from related tasks such as the odd-one-out.