Sha256: ea5e27b4b3260ed1130b00c0ca610c47d5f5cb23b1aa6f0c670d8bf72e8885a1

Contents?: true

Size: 479 Bytes

Versions: 10

Compression:

Stored size: 479 Bytes

Contents

module SVMKit
  module Base
    # Module for all transfomers in SVMKit.
    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

10 entries across 10 versions & 1 rubygems

Version Path
svmkit-0.2.5 lib/svmkit/base/transformer.rb
svmkit-0.2.4 lib/svmkit/base/transformer.rb
svmkit-0.2.3 lib/svmkit/base/transformer.rb
svmkit-0.2.2 lib/svmkit/base/transformer.rb
svmkit-0.2.1 lib/svmkit/base/transformer.rb
svmkit-0.2.0 lib/svmkit/base/transformer.rb
svmkit-0.1.3 lib/svmkit/base/transformer.rb
svmkit-0.1.2 lib/svmkit/base/transformer.rb
svmkit-0.1.1 lib/svmkit/base/transformer.rb
svmkit-0.1.0 lib/svmkit/base/transformer.rb