lib/rumale/ensemble/stacking_classifier.rb
# Calculate confidence scores for samples.
#
# @param x [Numo::DFloat] (shape: [n_samples, n_features]) The samples to compute the scores.
# @return [Numo::DFloat] (shape: [n_samples, n_classes]) The confidence score per sample.
Calculate confidence scores for samples.
Calculate confidence scores for samples .
def decision_function(x)
        x = check_convert_sample_array(x)
        z = transform(x)
        @meta_estimator.decision_function(z)
      end
def decision_function ( x ) x = check_convert_sample_array ( x ) z = transform ( x ) @meta_estimator . decision_function ( z ) end
Calculate confidence scores for samples.
Calculate confidence scores for samples .
[n_samples, n_classes]) The confidence score per sample.
[ n_samples n_classes ] ) The confidence score per sample .
Numo::DFloat
x
[n_samples, n_features]) The samples to compute the scores.
[ n_samples n_features ] ) The samples to compute the scores .