lib/rumale/decomposition/fast_ica.rb in rumale-0.18.0 vs lib/rumale/decomposition/fast_ica.rb in rumale-0.18.1

- old
+ new

@@ -121,32 +121,9 @@ x = z.dot(m.transpose) x += @mean if @params[:whiten] x end - # Dump marshal data. - # @return [Hash] The marshal data. - def marshal_dump - { params: @params, - components: @components, - mixing: @mixing, - n_iter: @n_iter, - mean: @mean, - rng: @rng } - end - - # Load marshal data. - # @return [nil] - def marshal_load(obj) - @params = obj[:params] - @components = obj[:components] - @mixing = obj[:mixing] - @n_iter = obj[:n_iter] - @mean = obj[:mean] - @rng = obj[:rng] - nil - end - private def whitening(x, n_components) n_samples, n_features = x.shape mean_vec = x.mean(0)