mlxtend Machine Learning Extensions, a Python library of useful tools for the day-to-day data science tasks. - TransactionEncoder We can transform this dataset into an array format suitable for typical machine learning APIs. The NumPy array is boolean for the sake of memory efficiency when working with large datasets. fit : the TransactionEncoder learns the unique labels in the dataset transform..