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.2.6 lib/svmkit/base/transformer.rb