Module: Rumale::Base::Splitter

Overview

Module for all validation methods in Rumale.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#n_splitsInteger (readonly)

Return the number of splits.

Returns:

  • (Integer)


13
14
15
# File 'lib/rumale/base/splitter.rb', line 13

def n_splits
  @n_splits
end

Instance Method Details

#splitObject

An abstract method for splitting dataset.

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/rumale/base/splitter.rb', line 16

def split
  raise NotImplementedError, "#{__method__} has to be implemented in #{self.class}."
end