Sha256: d6429d1124534750d2ac5fe9ffd53afd4777b3ca6cbce832230365b96fdd283f

Contents?: true

Size: 509 Bytes

Versions: 21

Compression:

Stored size: 509 Bytes

Contents

# frozen_string_literal: true

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

21 entries across 21 versions & 1 rubygems

Version Path
svmkit-0.7.3 lib/svmkit/base/transformer.rb
svmkit-0.7.2 lib/svmkit/base/transformer.rb
svmkit-0.7.1 lib/svmkit/base/transformer.rb
svmkit-0.7.0 lib/svmkit/base/transformer.rb
svmkit-0.6.3 lib/svmkit/base/transformer.rb
svmkit-0.6.2 lib/svmkit/base/transformer.rb
svmkit-0.6.1 lib/svmkit/base/transformer.rb
svmkit-0.6.0 lib/svmkit/base/transformer.rb
svmkit-0.5.2 lib/svmkit/base/transformer.rb
svmkit-0.5.1 lib/svmkit/base/transformer.rb
svmkit-0.5.0 lib/svmkit/base/transformer.rb
svmkit-0.4.1 lib/svmkit/base/transformer.rb
svmkit-0.4.0 lib/svmkit/base/transformer.rb
svmkit-0.3.3 lib/svmkit/base/transformer.rb
svmkit-0.3.2 lib/svmkit/base/transformer.rb
svmkit-0.3.1 lib/svmkit/base/transformer.rb
svmkit-0.3.0 lib/svmkit/base/transformer.rb
svmkit-0.2.9 lib/svmkit/base/transformer.rb
svmkit-0.2.8 lib/svmkit/base/transformer.rb
svmkit-0.2.7 lib/svmkit/base/transformer.rb