Skip to content

code has error #88

Description

@AP-stuent

your code of day 24 has error in the input of train datasets information

the right code is :-

from sklearn.model_selection import train_test_split

x_train , x_test ,y_train ,y_test = train_test_split( df[['Age', 'EstimatedSalary']],df['Purchased'], test_size = 0.4,random_state=0)

x_train.shape , x_test.shape

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