NoSplit¶
-
class
mastml.legos.data_splitters.
NoSplit
[source]¶ Bases:
sklearn.base.BaseEstimator
,sklearn.base.TransformerMixin
Class to just train the model on the training data and test it on that same data. Sometimes referred to as a “Full fit” or a “Single fit”, equivalent to just plotting y vs. x.
- Args:
- None (only object instance)
- Methods:
get_n_splits: method to calculate the number of splits to perform
- Args:
- None
- Returns:
- (int), always 1 as only a single split is performed
split: method to perform split into train indices and test indices
- Args:
- X: (numpy array), array of X features
- Returns:
- (numpy array), array of train and test indices (all data used as train and test for NoSplit)
Methods Summary
get_n_splits
([X, y, groups])split
(X, y[, groups])Methods Documentation