| validate_terminal_nodes | R Documentation |
extract_terminal_nodes()Boosting backends store their tree structures in opaque containers; a tiny API change can silently produce a malformed leaf matrix (e.g. all zeros), yielding a degenerate dissimilarity matrix without raising any error. This function asserts the shape and type contract so problems surface immediately at extraction time rather than much later, after the C++ co-occurrence call has already produced nonsense.
validate_terminal_nodes(nodes, data, backend = NA_character_)
Contract: nodes must be a data.frame with nrow(data)
rows and at least one column; every column must be coercible to integer;
at least one column must contain more than one distinct value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.