get_classification {clustNet}R Documentation

get_classification

Description

Classification based on clustering

Usage

get_classification(cluster_results, data_classify)

Arguments

cluster_results

Output from get_clusters()

data_classify

Data that should be classified; colnames need to match the ones of cluster_results$data; missing cols are allowed

Value

a list containing the classification as "clustermembership" and the probabilities of belonging to the clusters as "allrelativeprobabs"

Examples


# choose data
sampled_data <- sampleData(n_vars = 15, n_samples = c(300,300,300))$sampled_data
# learn clusters
cluster_results <- get_clusters(sampled_data)
# visualize the networks
classification_results <- get_classification(cluster_results, sampled_data)


[Package clustNet version 1.2.0 Index]