Sha256: 479cef1fda57098caad8d8ad080eeb8febdc2ef0514964fdc811fec68da389fc

Contents?: true

Size: 430 Bytes

Versions: 7

Compression:

Stored size: 430 Bytes

Contents

# frozen_string_literal: true

require 'numo/narray'

module Rumale
  module Base
    # Module for all validation methods in Rumale.
    module Splitter
      # Return the number of splits.
      # @return [Integer]
      attr_reader :n_splits

      # An abstract method for splitting dataset.
      def split
        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/splitter.rb
rumale-core-0.28.1 lib/rumale/base/splitter.rb
rumale-core-0.28.0 lib/rumale/base/splitter.rb
rumale-core-0.27.0 lib/rumale/base/splitter.rb
rumale-core-0.26.0 lib/rumale/base/splitter.rb
rumale-core-0.25.0 lib/rumale/base/splitter.rb
rumale-core-0.24.0 lib/rumale/base/splitter.rb