A framework for machine learning in the fields of statistical Analysis