hanaml.MDS {hana.ml.r} | R Documentation |
hanaml.MDS is a R wrapper for PAL Multi-dimensional scaling(MDS) algorithm.
hanaml.MDS(conn.context, data, key, features = NULL, matrix.type, thread.ratio = NULL, dim = NULL, metric = NULL, minkowski.power = NULL)
conn.context |
|
data |
|
key |
|
features |
|
matrix.type |
The type of the input table:
|
thread.ratio |
|
dim |
|
metric |
The type of distance during the calculation of dissimilarity matrix:
|
minkowski.power |
|
R6Class
object.
DataFrame
Sampling results, structured as follows:
- DATA_ID: name as shown in input DataFrame.
- DIMENSION: dimension.
- VALUE: value
n_clusters - 1.
DataFrame
Statistic results, structured as follows:
- STAT_NAME: statistic name.
- STAT_VALUE: statistic value.
## Not run: Input DataFrame for Multidimensional Scaling: > data$collect() ID X1 X2 X3 X4 1 1 0.0000000 0.9047814 0.9085961 0.9103063 2 2 0.9047814 0.0000000 0.2514457 0.5975016 3 3 0.9085961 0.2514457 0.0000000 0.4403572 4 4 0.9103063 0.5975016 0.4403572 0.0000000 Training the model: > mds <- hanaml.MDS(conn, data, matrix.type = "dissimilarity", thread.ratio = 0.5) expected output: > mds$labels$Collect() ID DIMENSION VALUE 1 1 1 0.65191741 2 1 2 -0.01585861 3 2 1 -0.21773716 4 2 2 -0.25319456 5 3 1 -0.24990695 6 3 2 -0.07294968 7 4 1 -0.18427330 8 4 2 0.34200285 ## End(Not run)