Sha256: 57f4a43f608c05aed357134ef2899d1eb41f2d3e7a7846c0b5a99038d2f921dd

Contents?: true

Size: 532 Bytes

Versions: 7

Compression:

Stored size: 532 Bytes

Contents

# frozen_string_literal: true

require 'numo/narray'

module Rumale
  module Base
    # Module for all transfomers in Rumale.
    module Transformer
      # An abstract method for fitting a model.
      def fit
        raise NotImplementedError, "#{__method__} has to be implemented in #{self.class}."
      end

      # An abstract method for fitting a model and transforming given data.
      def fit_transform
        raise NotImplementedError, "#{__method__} has to be implemented in #{self.class}."
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rumale-core-0.29.0 lib/rumale/base/transformer.rb
rumale-core-0.28.1 lib/rumale/base/transformer.rb
rumale-core-0.28.0 lib/rumale/base/transformer.rb
rumale-core-0.27.0 lib/rumale/base/transformer.rb
rumale-core-0.26.0 lib/rumale/base/transformer.rb
rumale-core-0.25.0 lib/rumale/base/transformer.rb
rumale-core-0.24.0 lib/rumale/base/transformer.rb