Ganesh Gs

0

votes
0

answer
6

views

RRuntimeError: Error in UseMethod(“predict”) :(when i try to call a function(which reads a rpart model and tries to predict)in R from python)

I have been trying to call a function in R from Python. When calling I'm getting an error saying that there's no applicable method 'predict' for the object 'rpart' I have tried importing rpy2 package and tried to call it but still I'm getting the same error def function(arg1,arg2,arg3,arg4, arg5,ar...
Ganesh Gs