lib/rumale/preprocessing/kernel_calculator.rb
# Fit the model with given training data.
#
# @overload fit(x) -> KernelCalculator
#   @param x [Numo::NArray] (shape: [n_samples, n_features]) The training data to be used for calculating kernel matrix.
# @return [KernelCalculator] The learned transformer itself.
Fit the model with given training data.
Fit the model with given training data .
def fit(x, _y = nil)
        x = check_convert_sample_array(x)
        @components = x.dup
        self
      end
def fit ( x , _y = nil ) x = check_convert_sample_array ( x ) @components = x . dup self end
Fit the model with given training data.
Fit the model with given training data .
The learned transformer itself.
The learned transformer itself .
KernelCalculator
x
<not_specific>
_y
<not_specific>
overload
> KernelCalculator @param x [Numo::NArray] (shape: [n_samples, n_features]) The training data to be used for calculating kernel matrix.
> KernelCalculator @param x [ Numo :: NArray ] ( shape : [ n_samples n_features ] ) The training data to be used for calculating kernel matrix .