-2
$\begingroup$

I would like to interface R with some other language (C#/Python/anything easy to use) to provide it with a web service (or other technology) to an other application developed in C#.

R => black box webservice (xml/json) => C# application

The goal is not to recalculate the Model every time (it can take few hours to generate).

It should be able to be to have multiple calls at the same time (1 to 1000 per seconds).

Extra question: It is also possible to make the R Model learn from it at the same time?

looking forward your answers

$\endgroup$
0
$\begingroup$

I use c++ to perform training / testing and develop machine learning tasks. Then to interface with c# you need to use managed code to build you dll ( c++ cli/ clr) then you can call this dll from c# I am not sure if it is possible to call R from c# But if it can be called from c++ then you can go to c#

| improve this answer | |
$\endgroup$
  • $\begingroup$ Do you have a sample of code or a library to use for that? Is it also able to save the Model in memory and have multiple calls at the same time? $\endgroup$ – Lenny32 Jun 28 '16 at 14:36
0
$\begingroup$

Since you are working in C#, you may want to create a wrapper for your app that is a REST based web service returning a JSON. See this. You could then use JSONLITE to work with the JSON. Hope this helps...

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.