Class encapsulating a precomputed kernel, where each position indicates the similarity score for two items in the training data.