Module: Rumale::Base::Transformer
- Included in:
- Decomposition::FactorAnalysis, Decomposition::FastICA, Decomposition::NMF, Decomposition::PCA, Decomposition::SparsePCA, FeatureExtraction::FeatureHasher, FeatureExtraction::HashVectorizer, FeatureExtraction::TfidfTransformer, KernelApproximation::Nystroem, KernelApproximation::RBF, KernelMachine::KernelFDA, KernelMachine::KernelPCA, Manifold::HessianEigenmaps, Manifold::LaplacianEigenmaps, Manifold::LocalTangentSpaceAlignment, Manifold::LocallyLinearEmbedding, Manifold::MDS, Manifold::TSNE, MetricLearning::FisherDiscriminantAnalysis, MetricLearning::LocalFisherDiscriminantAnalysis, MetricLearning::MLKR, MetricLearning::NeighbourhoodComponentAnalysis, Preprocessing::BinDiscretizer, Preprocessing::Binarizer, Preprocessing::KernelCalculator, Preprocessing::L1Normalizer, Preprocessing::L2Normalizer, Preprocessing::LabelBinarizer, Preprocessing::LabelEncoder, Preprocessing::MaxAbsScaler, Preprocessing::MaxNormalizer, Preprocessing::MinMaxScaler, Preprocessing::OneHotEncoder, Preprocessing::OrdinalEncoder, Preprocessing::PolynomialFeatures, Preprocessing::StandardScaler
- Defined in:
- rumale-core/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.
10 11 12 |
# File 'rumale-core/lib/rumale/base/transformer.rb', line 10 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.
15 16 17 |
# File 'rumale-core/lib/rumale/base/transformer.rb', line 15 def fit_transform raise NotImplementedError, "#{__method__} has to be implemented in #{self.class}." end |