lin_kernel | R Documentation |
Linear Kernel
lin_kernel(x, y, hp, deriv = NULL, vectorized = FALSE)
x |
A vector (or matrix if vectorized = T) of inputs. |
y |
A vector (or matrix if vectorized = T) of inputs. |
hp |
A tibble, data frame or named vector, containing the kernel's hyperparameters. Required columns: 'lin_slope' and 'lin_offset'. |
deriv |
A character, indicating according to which hyper-parameter the derivative should be computed. If NULL (default), the function simply returns the evaluation of the kernel. |
vectorized |
A logical value, indicating whether the function provides
a vectorized version for speeded-up calculations. If TRUE, the |
A scalar, corresponding to the evaluation of the kernel.
TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.