Hey,
No, unfortunately this LWPR implementation is not thread safe. You shouldn't even call the predict functions from several threads at once, since there are some shared vectors that keep the scaled inputs etc.
Best regards,
Stefan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Is this lib thread-safe? I mean is it safe to have two threads one updating the model and the other one predicting, at the same time?
Thanks,
Hey,
No, unfortunately this LWPR implementation is not thread safe. You shouldn't even call the predict functions from several threads at once, since there are some shared vectors that keep the scaled inputs etc.
Best regards,
Stefan