Module: Rumale::Base::Splitter
- Included in:
- ModelSelection::KFold, ModelSelection::ShuffleSplit, ModelSelection::StratifiedKFold, ModelSelection::StratifiedShuffleSplit
- Defined in:
- lib/rumale/base/splitter.rb
Overview
Module for all validation methods in Rumale.
Instance Attribute Summary collapse
-
#n_splits ⇒ Integer
readonly
Return the number of splits.
Instance Method Summary collapse
-
#split ⇒ Object
An abstract method for splitting dataset.
Instance Attribute Details
#n_splits ⇒ Integer (readonly)
Return the number of splits.
13 14 15 |
# File 'lib/rumale/base/splitter.rb', line 13 def n_splits @n_splits end |
Instance Method Details
#split ⇒ Object
An abstract method for splitting dataset.
16 17 18 |
# File 'lib/rumale/base/splitter.rb', line 16 def split raise NotImplementedError, "#{__method__} has to be implemented in #{self.class}." end |