skPWD | R Documentation |
use sklearn pairwise_distances procedure
skPWD(mat, ...)
mat |
a matrix – can be R matrix or numpy.ndarray |
... |
additional parameters passed to sklearn.metrics.pairwise_distances, for additional information use |
matrix with rotation
If no additional arguments are passed, all defaults are used.
irloc = system.file("csv/iris.csv", package="BiocSklearn")
data(iris)
irismat = as.matrix(iris[,1:4])
chk1 = skPWD(irismat)
chk1[1:4,1:5]
chk2 = skPWD(irismat, metric='manhattan')
chk2[1:4,1:5]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.