MLlib classification template