Assessing regulatory fairness through machine learning