Module: Rumale::Base::Splitter
- Included in:
- ModelSelection::GroupKFold, ModelSelection::GroupShuffleSplit, ModelSelection::KFold, ModelSelection::ShuffleSplit, ModelSelection::StratifiedKFold, ModelSelection::StratifiedShuffleSplit, ModelSelection::TimeSeriesSplit
- Defined in:
- rumale-core/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.
11 12 13 |
# File 'rumale-core/lib/rumale/base/splitter.rb', line 11 def n_splits @n_splits end |
Instance Method Details
#split ⇒ Object
An abstract method for splitting dataset.
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 |