Developer Guide

Contents

Usage of Training Alternative

To build a Linear Regression model using methods of the Model Builder class of Linear Regression, complete the following steps:
  • Create a Linear Regression model builder using a constructor with the required number of responses and features.
  • Use the
    setBeta
    method to add the set of pre-calculated coefficients to the model. Specify random access iterators to the first and the last element of the set of coefficients [ISO/IEC 14882:2011 §24.2.7].
    If your set of coefficients does not contain an intercept,
    interceptFlag
    is automatically set to
    False
    , and to
    True
    , otherwise.
  • Use the
    getModel
    method to get the trained Linear Regression model.
  • Use the
    getStatus
    method to check the status of the model building process. If
    DAAL_NOTHROW_EXCEPTIONS
    macro is defined, the status report contains the list of errors that describe the problems API encountered (in case of API runtime failure).
If after calling the
getModel
method you use the
setBeta
method to update coefficients, the initial model will be automatically updated with the new
β
coefficients.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804