Skip to content

Solutions for 04_regularization  #67

@leahhrlee

Description

@leahhrlee

Solutions for 04_regularization should include:

Import data

penguins <- palmerpenguins::penguins %>%
filter(!is.na(bill_length_mm))

Set seed

set.seed(23)

Perform split

penguin_split <- penguins %>% initial_split(prop = 0.80)
penguins_train <- training(penguin_split)
penguins_test <- testing(penguin_split)

Participants will run into error if null values in bill_length_mm are not dropped

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions