get_k | R Documentation |
'get_k()' is an internal function used by 'build_k()' to calcualte similarity kernel for each pair of observations
get_k(y1, y2, sigma, dist_metric = "euclidean")
y1 |
- [NxP] Matrix of data from bag i |
y2 |
- [NxP] Matrix of data from bag j |
sigma |
- [scaler] smoothing hyperparameters for RBF kernel |
dist_metric |
[character] One of the distance methods from rdist::cdist. Default = "euclidean". see ?rdist::cdist |
This function takes two data.frames or matricies, calculates the cross distance between them, and then applies a radial basis function to the resulting distance matrix.
Matrix G
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.