Intel® oneAPI Data Analytics Library
Community support for building compute-intensive applications that run fast on Intel® architecture.

Model serialization

SOILA_K_Intel
Employee
404 Views

Hi,

I was looking into serializing and de-serializing DAAL linear regression models. I had to add the following line of code to void serialImpl(Archive *arch, size_t version) in "include/algorithms/linear_regression/linear_regression_model.h" to get it to work. Without this line, the beta table was either null or filled with zeros depending on the constructor.

_beta = SharedPtr<data_management::NumericTable>(beta);

Are there plans to release the JNI wrapper code as well, so that we can easily extend Java objects with methods that are available in c++ but not in Java. For example, accessing the QR tables in linear regression with QR decomposition?

Thanks,

Soila

0 Kudos
1 Solution
Ilya_B_Intel
Employee
404 Views

Soila,

Serialization function for linear regression model is updated in our code base and this fix will be available in nearest Beta update.

We plan to align C++ and Java interfaces additional code modification will not be required to access data in Java API. Most of the missing Java interface functions will be available in nearest Beta update as well.

Ilya

View solution in original post

2 Replies
Ilya_B_Intel
Employee
405 Views

Soila,

Serialization function for linear regression model is updated in our code base and this fix will be available in nearest Beta update.

We plan to align C++ and Java interfaces additional code modification will not be required to access data in Java API. Most of the missing Java interface functions will be available in nearest Beta update as well.

Ilya

SOILA_K_Intel
Employee
404 Views

Thanks Ilya!

Reply