Closed yitang closed 7 years ago
@yitang I'm not sure what the problem is, but I'd like to find out in case it's a bug in py-earth. Could you try the following:
It's worth noting that py-earth is probably not as memory efficient as the R package earth, so there may be some sized problems that work on earth but not on py-earth. I wouldn't think this would be one of them, however.
I just had a look in the code, and indeed I think that max_terms is the problem. I'm going to open a separate issue around it, but please report back if setting max_terms fixes your problem.
thanks for your quick reply. set max_terms to 100 solve this problem.
Excellent. Thanks for reporting, @yitang.
Thanks for writing this package, it helps me a lot in switching from R to python.
I tried to train a mars model but got a MemeoryError, but I don't understand why. the data size is certainly not big, and I am able to train it in R.