Got rf working with lambda function. Got naive bayes working as well.