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.
seedReturns the instance variable seed (integer)
setSeedSets the instance variable seed (integer)
maxClusterReturns the instance variable maxCluster (integer)
setMaxClusterSets the instance variable maxCluster (integer)
df_dataReturns the instance variable df_data (tbl_df)
df_wcssReturns the instance variable df_wcss (tbl_df)
df_silhouetteReturns the instance variable df_silhouette (tbl_df)
verboseReturns the instance variable verbose (logical)
new()Creates and returns a new screen.KMeans object.
screen.KMeans$new(n = 2, seed = 42, verbose = FALSE)
nInitial number of maxCluster (integer)
seedAn initial seed. Default is 42 (integer)
verboseMakes 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)
objThe data to be analyzed. Needs to be the result of a pca analysis. (tibble::tibble)
nnumber of iterations (integer)
kmeansAnalysis()Performs an iterative KMeans step. Not to run by the user.
screen.KMeans$kmeansAnalysis(obj, n)
objThe data to be analyzed. Needs to be the result of a pca analysis. (tibble::tibble)
nSeed 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)
deepWhether 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.