Module: Rumale::Base::Transformer

Overview

Module for all transfomers in Rumale.

Instance Method Summary collapse

Instance Method Details

#fitObject

An abstract method for fitting a model.

Raises:

  • (NotImplementedError)


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_transformObject

An abstract method for fitting a model and transforming given data.

Raises:

  • (NotImplementedError)


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