Skip to content

Survived missing in df.train.munged #8

@j450h1

Description

@j450h1

Looks like you may need to include Survived in df.train.munged. Getting this error:

training.rows <- createDataPartition(df.train.munged$Survived,

  •                                 p = 0.8, list = FALSE)
    
    Error in createDataPartition(df.train.munged$Survived, p = 0.8, list = FALSE) :
    y must have at least 2 data points

colnames(df.train.munged)
[1] "Fate" "Sex" "Boat.dibs" "Age" "Title" "Class" "Deck"
[8] "Side" "Fare" "Fare.pp" "Embarked" "Family"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions