Skip to content
Quantoros

For a precomputed SVM kernel with ntrain training rows, what shape should the prediction kernel have for ntest new rows?

Classic MLLevel: AdvancedPrediction Gram matrix

For a precomputed SVM kernel with n_train training rows, what shape should the prediction kernel have for n_test new rows?

Hints
  • The learned dual representation refers to training examples.
  • Preserve training-column identity.

Answer

This answer is part of mentoring

Advanced questions come with a full breakdown and a mock interview with a working quant researcher. The first call is free.

Source and licence: scikit-learn 1.7.2 — svm · BSD-3-Clause · answer: Quantoros editorial

Related questions