Module: Rumale::Base::Transformer
- Included in:
- Decomposition::NMF, Decomposition::PCA, KernelApproximation::RBF, Manifold::TSNE, Preprocessing::BinDiscretizer, Preprocessing::L2Normalizer, Preprocessing::LabelEncoder, Preprocessing::MaxAbsScaler, Preprocessing::MinMaxScaler, Preprocessing::OneHotEncoder, Preprocessing::StandardScaler
- Defined in:
- lib/rumale/base/transformer.rb
Overview
Module for all transfomers in Rumale.
Instance Method Summary collapse
-
#fit ⇒ Object
An abstract method for fitting a model.
-
#fit_transform ⇒ Object
An abstract method for fitting a model and transforming given data.
Instance Method Details
#fit ⇒ Object
An abstract method for fitting a model.
12 13 14 |
# File 'lib/rumale/base/transformer.rb', line 12 def fit raise NotImplementedError, "#{__method__} has to be implemented in #{self.class}." end |
#fit_transform ⇒ Object
An abstract method for fitting a model and transforming given data.
17 18 19 |
# File 'lib/rumale/base/transformer.rb', line 17 def fit_transform raise NotImplementedError, "#{__method__} has to be implemented in #{self.class}." end |