
Benchmark quantum-foundation KRR against classical baselines
Source:R/quantum_foundation.R
qf_krr_benchmark.RdRuns four regressors on the same train/test split:
ranger(QRF) over the RAW covariates (our established plain-ML baseline from the v1.3case-cerrado-end-to-end).RBF Kernel Ridge Regression over the foundation-embedding PCs.
Quantum Kernel Ridge Regression over the RAW covariates (Pillar 6 original).
Quantum Kernel Ridge Regression over the foundation-embedding PCs (the v2.0.0 contribution).
Usage
qf_krr_benchmark(
embeddings,
covariates,
y,
train_ix = NULL,
test_ix = NULL,
n_pcs = 8L,
reps = 2L,
lambda = 0.1
)Arguments
- embeddings
Foundation-model embedding matrix (n_obs x D).
- covariates
Raw-covariate matrix or data frame (n_obs x C).
- y
Numeric response.
- train_ix, test_ix
Integer index vectors selecting rows for train/test. If
NULL, a 70/30 random split is drawn.- n_pcs, reps, lambda
Passed to
qf_krr_fit().