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)


11
12
13
# File 'rumale-core/lib/rumale/base/splitter.rb', line 11

def n_splits
  @n_splits
end

Instance Method Details

#splitObject

An abstract method for splitting dataset.

Raises:

  • (NotImplementedError)


14
15
16
# File 'rumale-core/lib/rumale/base/splitter.rb', line 14

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