Prints a brief descripton of a fitted CARP object.

# S3 method for CARP
print(x, ...)

# S3 method for CARP
as.dendrogram(object, ...)

# S3 method for CARP
as.hclust(x, ...)

Arguments

x

an object of class CARP as returned by CARP

...

Additional unused arguments

object

an object of class CARP as returned by CARP

Details

Reports number of observations and variables of dataset, any preprocessing done by the CARP function, regularization weight information, and the variant of CARP used.

The as.dendrogram and as.hclust methods convert the CBASS output to an object of class dendrogram or hclust respectively.

Examples

carp_fit <- CARP(presidential_speech)
#> Pre-computing weights and edge sets
#> Computing Convex Clustering [CARP] Path
#> Post-processing
print(carp_fit)
#> CARP Fit Summary #> ==================== #> #> Algorithm: CARP (t = 1.05) #> Fit Time: 0.425 secs #> Total Time: 1.458 secs #> #> Number of Observations: 44 #> Number of Variables: 75 #> #> Pre-processing options: #> - Columnwise centering: TRUE #> - Columnwise scaling: FALSE #> #> Weights: #> - Source: Radial Basis Function Kernel Weights #> - Distance Metric: Euclidean #> - Scale parameter (phi): 0.01 [Data-Driven] #> - Sparsified: 4 Nearest Neighbors [Data-Driven] #>