Mean Squared Error Algorithm¶
Note
Mean Squared Error Algorithm is not supported on GPU.
Details¶
Given \(x = (x_{i1}, \ldots, x_{ip}) \in R^p\), a set of feature vectors \(i \in \{1, \ldots, n\}\), and a set of respective responses \(y_i\), the mean squared error (MSE) objective function \(F(\theta; x, y)\) is a function that has the format:
In oneDAL implementation of the MSE, the \(h(\theta, y_i)\) is represented as:
For a given set of the indices \(I = \{i_1, i_2, \ldots, i_m\}\), \(1 \leq i_r < n\), \(l \in \{1, \ldots, m\}\), \(|I| = m\), the value and the gradient of the sum of functions in the argument \(x\) respectively have the format:
where
\(lipschitzConstant = \underset{i = 1, \ldots, n} \max \| x_i \|_2\)
Computation¶
Algorithm Input¶
The mean squared error algorithm accepts the input described below.
Pass the Input ID
as a parameter to the methods that provide input for your algorithm.
For more details, see Algorithms.
Input ID |
Input |
|
A numeric table of size \((p + 1) \times 1\) with the input argument \(\theta\) of the objective function. |
|
A numeric table of size \(n \times p\) with the data \(x_{ij}\). |
|
A numeric table of size \(n \times 1\) with dependent variables \(y_i\). |
Optional Algorithm Input¶
The mean squared error algorithm accepts the optional input described below.
Pass the Optional Input ID
as a parameter to the methods that provide input for your algorithm.
For more details, see Algorithms.
Input ID |
Input |
|
Optional input.
Pointer to the \(1 \times n\) numeric table with weights of samples.
The input can be an object of any class derived from By default, all weights are equal to \(1\). |
|
Optional input.
Pointer to the :mathL`p times p` numeric table with pre-computed Gram matrix.
The input can be an object of any class derived from By default, the table is set to empty numeric table. |
Algorithm Parameters¶
The mean squared error algorithm has the following parameters. Some of them are required only for specific values of the computation method parameter method:
Parameter |
Default value |
Description |
|
\(0\) |
The numeric table of size \(1 \times \mathrm{nDependentVariables}\) with L1 regularized coefficients. |
|
\(0\) |
The numeric table of size \(1 \times \mathrm{nDependentVariables}\) with L2 regularized coefficients. |
|
|
Flag to indicate whether or not to compute the intercept. |
|
|
The floating-point type that the algorithm uses for intermediate computations. Can be |
|
|
Performance-oriented computation method. |
|
Not applicable |
The number of terms in the objective function. |
batchIndices |
Not applicable |
The numeric table of size \(1 \times m\), where \(m\) is the batch size, with a batch of indices to be used to compute the function results. If no indices are provided, the implementation uses all the terms in the computation. Note This parameter can be an object of any class derived from |
|
|
The 64-bit integer flag that specifies which characteristics of the objective function to compute. Provide one of the following values to request a single characteristic or use bitwise OR to request a combination of the characteristics:
|
Examples¶
Note
There is no support for Java on GPU.