stablelearner (version 0.1-2)

similarity_values: Extracting Similarity Values

Description

Extract similarity values from object returned by stability for further illustration or analysis.

Usage

similarity_values(x, reverse = TRUE)

Arguments

x

an object of class "stablelearner" or "stablelearnerList" from which the similarity values are extracted.

reverse

logical. If reverse = TRUE (default), the similarity values are transformed (reversed) such that higher values indicate a higher stability.

Value

A numeric array of dimension 3 containing similarity values. The dimensions represent repetitions, results (fitted model objects) and similarity measures.

See Also

stability, summary.stablelearnerList

Examples

Run this code
# NOT RUN {
library("partykit")
res <- ctree(Species ~ ., data = iris)
stab <- stability(res)
similarity_values(stab)
# }

Run the code above in your browser using DataLab