Java-R integration?

后端 未结 8 1169
南方客
南方客 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

提交回复
热议问题