Understanding unfairness and its mitigation in open-source machine learning models