Skip to content

TrainTestSplit is not working properly, when the column name provided #5563

@tasmektep

Description

@tasmektep

I think there is a issue with "TrainTestSplit" function.

When I tried to split data that consist of 500 samples which have equal number of sample from each class, it returns the testset as 0 number of rows. However when I try to split it without "label" with 0.1 ratio, it returns as 49 to testset rows and 451 to trainset rows.

Is there a way to solve this problem?

I'm using final packages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    loadsaveBugs related loading and saving data or models

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions