Skip to contents

A cpm object is the primary result returned by cpm().

Structure

A cpm object is a list with the following elements:

call

Matched call used for the CPM run.

spec

The originating CPM specification object.

settings

Runtime settings used for the CPM run, including missing-data handling, edge-storage preferences, and any nested tuning settings.

predictions

Data frame of observation-level predictions with fold IDs and one column per configured prediction stream.

edges

Stored edge output based on return_edges (NULL/matrix/array).

folds

List of outer assessment-row indices for each fold.

tuning

Candidate-level inner-fold scores and the selected level for each outer fold, or NULL for fixed-specification runs.