summary.split_df {alookr} | R Documentation |
Summarizing split_df information
Description
summary method for "split_df" class.
Usage
## S3 method for class 'split_df'
summary(object, ...)
Arguments
object |
an object of class "split_df", usually, a result of a call to split_df(). |
... |
further arguments passed to or from other methods. |
Details
summary.split_df provides information on the number of two split data sets, minority class and majority class.
Value
NULL is returned. However, the split train set and test set information are displayed. The output information is as follows.:
Random seed
Number of train sets and test sets
Name of target variable
Target variable minority class and majority class information (label and ratio)
Examples
library(dplyr)
# Credit Card Default Data
head(ISLR::Default)
# Generate data for the example
sb <- ISLR::Default %>%
split_by(default)
sb
summary(sb)
[Package alookr version 0.3.9 Index]