Java-R integration?

后端 未结 8 1042
南方客
南方客 2020-11-30 21:05

I have a Java app which needs to perform partial least squares regression. It would appear there are no Java implementations of PLSR out there. Weka might have had something

相关标签:
8条回答
  • 2020-11-30 21:32

    I have successfully used two alternatives in the past.

    JRI

    • Pros: probably better performance.
    • Cons: you have to configure some environment variables and libraries, different in Win/UNIX.

    RServe

    • Pros: easy to setup, you don't need to initialize R or link against any R library, can run in a different machine.
    • Cons: based on TCP/IP (a server is running), no callbacks from R.

    Other alternatives I have never used : RCaller

    0 讨论(0)
  • 2020-11-30 21:32

    I had similar need a while back and tested a few of the interfaces to R. The one I found to be the best for my needs (windows, c#) was Rserve which I believe is written in Java. My only gripe with it is that it wasn't 64-bit. I used a simple client written in c# and it worked very well. I'm sure the Java client is a lot better.

    0 讨论(0)
提交回复
热议问题