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)


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_transformObject

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

Raises:

  • (NotImplementedError)


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