Skip to content

Problem 33: Generate Random Subsets of a Dataset (some confusions) #498

@VARUN3WARE

Description

@VARUN3WARE

Issue:

The problem description for get_random_subsets does not clearly specify the expected subset size for each case of the replacements flag.

Current Confusion:

When replacements=True, the expected subset size is equal to the dataset size.

When replacements=False, the subset size is expected to be 50% of the dataset (i.e., len(X) // 2).

This isn't clearly stated, which may lead to incorrect implementations or wasted debugging time.

Suggested Fix:

Add a note in the problem description like:

"Each subset should contain:

  • the full dataset size if replacements=True

  • 50% of the dataset if replacements=False"

Why:

Clarifying this removes ambiguity and improves the learning experience.

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