Adding figaro library to scala general purpose machine learning frameworks