lib/rumale/decomposition/fast_ica.rb
# Inverse transform the given transformed data with the learned model.
#
# @param z [Numo::DFloat] (shape: [n_samples, n_components]) The source data reconstructed to the mixed data.
# @return [Numo::DFloat] (shape: [n_samples, n_featuress]) The mixed data.
Inverse transform the given transformed data with the learned model.
Inverse transform the given transformed data with the learned model .
def inverse_transform(z)
        z = check_convert_sample_array(z)
        m = @mixing.shape[1].nil? ? @mixing.expand_dims(0).transpose : @mixing
        x = z.dot(m.transpose)
        x += @mean if @params[:whiten]
        x
      end
def inverse_transform ( z ) z = check_convert_sample_array ( z ) m = @mixing . shape [ 1 ] . nil? ? @mixing . expand_dims ( 0 ) . transpose : @mixing x = z . dot ( m . transpose ) x += @mean if @params [ :whiten ] x end
Inverse transform the given transformed data with the learned model.
Inverse transform the given transformed data with the learned model .
[n_samples, n_featuress]) The mixed data.
[ n_samples n_featuress ] ) The mixed data .
Numo::DFloat
z
[n_samples, n_components]) The source data reconstructed to the mixed data.
[ n_samples n_components ] ) The source data reconstructed to the mixed data .