summary.split_df: Summarizing split_df information

View source: R/split.R

summary.split_dfR 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)


alookr documentation built on May 29, 2024, 10:38 a.m.