Intel® oneAPI Data Analytics Library
Community support for building compute-intensive applications that run fast on Intel® architecture.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

linear regression normalization

Farzaneh_T_
Beginner
282 Views

Hi there,

I am trying to implement Intel DAAL for linear regression. I have noticed that by default it doesn't scale data before doing regression. I can include z-score calculation in the code, but is there any option to be activated in the linear regression algorithm to do normalization before doing the regression?

Many thanks in advance,

Farzaneh

0 Kudos
1 Solution
VictoriyaS_F_Intel
282 Views

Hello Farzaneh,

As you correctly noticed Intel DAAL does not scale the data before doing the regression.

To normalize the data please use one of the normalization algorithms available in the library: https://software.intel.com/sites/products/documentation/doclib/daal/daal-user-and-reference-guides/i...

Best regards,

Victoriya

View solution in original post

4 Replies
VictoriyaS_F_Intel
283 Views

Hello Farzaneh,

As you correctly noticed Intel DAAL does not scale the data before doing the regression.

To normalize the data please use one of the normalization algorithms available in the library: https://software.intel.com/sites/products/documentation/doclib/daal/daal-user-and-reference-guides/i...

Best regards,

Victoriya

Andrey_N_Intel
Employee
282 Views

Hi Farzaneh,

To double-check that our understanding of your question is correct. Do you suggest to activate z-score in the linear regression algorithm for usability reasons, that is to avoid explicit call to z-score technique in Intel DAAL based application, before training the linear regression model? Or you keep in mind some other reasons/use cases?

Andrey

Farzaneh_T_
Beginner
282 Views

Hi Andrey,

I need  to get reasonable coefficients from the linear regression model to decide to reduce the number of features that I have. Therefore I need to scale the data before doing linear regression. I wanted to know whether there is any straight-forward way to do that, rather than first calling the z-score, and then start the training the linear regression.

Best,

Farzaneh

Andrey_N_Intel
Employee
282 Views

Hi Farzaneh,

As Vika mentioned earlier in this thread, with the present version of Intel DAAL API you need to call z-score first, and then start training the liner regression model. On our side, we will run additional internal analysis of your request.

Thanks, Andrey

Reply