lib/rumale/kernel_machine/kernel_svc.rb
# Calculate confidence scores for samples.
#
# @param x [Numo::DFloat] (shape: [n_testing_samples, n_training_samples])
#     The kernel matrix between testing samples and training samples to compute the scores.
# @return [Numo::DFloat] (shape: [n_testing_samples, n_classes]) Confidence score per sample.
Calculate confidence scores for samples.
Calculate confidence scores for samples .
def decision_function(x)
        x = check_convert_sample_array(x)
        x.dot(@weight_vec.transpose)
      end
def decision_function ( x ) x = check_convert_sample_array ( x ) x . dot ( @weight_vec . transpose ) end
Calculate confidence scores for samples.
Calculate confidence scores for samples .
[n_testing_samples, n_classes]) Confidence score per sample.
[ n_testing_samples n_classes ] ) Confidence score per sample .
Numo::DFloat
x
[n_testing_samples, n_training_samples]) The kernel matrix between testing samples and training samples to compute the scores.
[ n_testing_samples n_training_samples ] ) The kernel matrix between testing samples and training samples to compute the scores .