initial commit of machine learning calculations for toolbox