Description Format Details Active bindings Methods Author(s)
Performs KMeans clustering on a given pca dataset.
[R6::R6Class] object.
Performs KMeans clustering on a given pca dataset.
seed
Returns the instance variable seed (integer)
setSeed
Sets the instance variable seed (integer)
maxCluster
Returns the instance variable maxCluster (integer)
setMaxCluster
Sets the instance variable maxCluster (integer)
df_data
Returns the instance variable df_data (tbl_df)
df_wcss
Returns the instance variable df_wcss (tbl_df)
df_silhouette
Returns the instance variable df_silhouette (tbl_df)
verbose
Returns the instance variable verbose (logical)
new()
Creates and returns a new screen.KMeans object.
screen.KMeans$new(n = 2, seed = 42, verbose = FALSE)
n
Initial number of maxCluster (integer)
seed
An initial seed. Default is 42 (integer)
verbose
Makes the class chatty. Default is FALSE. (logical)
A new R6 object of type pca.KMeans. (pguXAI::pca.KMeans)
finalize()
Clears the heap and indicates that instance of pca.KMeans is removed from heap.
screen.KMeans$finalize()
print()
Prints instance variables of screen.KMeans object.
screen.KMeans$print()
string
train()
trains the model
screen.KMeans$train(obj = "tbl_df", n = 10)
obj
The data to be analyzed. Needs to be the result of a pca analysis. (tibble::tibble)
n
number of iterations (integer)
kmeansAnalysis()
Performs an iterative KMeans step. Not to run by the user.
screen.KMeans$kmeansAnalysis(obj, n)
obj
The data to be analyzed. Needs to be the result of a pca analysis. (tibble::tibble)
n
Seed additive (integer)
Result dataframe of the kmeans analysis. (tbl_df)
wcssAnalysis()
Performs wcss analysis on df_data. Not to run by the user.
screen.KMeans$wcssAnalysis()
silhouetteAnalysis()
Performs silhouette analysis on df_data. Not to run by the user.
screen.KMeans$silhouetteAnalysis()
clone()
The objects of this class are cloneable with this method.
screen.KMeans$clone(deep = FALSE)
deep
Whether to make a deep clone.
Sebastian Malkusch, malkusch@med.uni-frankfurt.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.