Prints a compact summary of a fitted conditional mean embedding: the training-sample size, the input and output dimensions, the resolved kernels, and the ridge regularisation parameter that was used.
Usage
# S3 method for class 'cme_fit'
print(x, ...)Arguments
- x
A
cme_fitobject returned byfit_cme().- ...
Unused; present for S3 generic compatibility.
Examples
set.seed(1L)
x <- matrix(rnorm(60L), ncol = 2L)
y <- matrix(x[, 1L] + rnorm(30L, sd = 0.2), ncol = 1L)
print(fit_cme(x, y, lambda = 1e-2))
#> Conditional mean embedding (kernel ridge regression)
#> Training points: 30
#> Input dim: 2
#> Output dim: 30
#> Kernel (x): rbf
#> Kernel (y): rbf
#> Ridge lambda: 0.01
