Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fetch_kddcup99 does not shuffle data #9730

@ngoix

Description

@ngoix

code snipet to reproduce:

from sklearn.datasets import fetch_kddcup99
dataset = fetch_kddcup99(subset='SA', shuffle=True, percent10=True)
assert(all(dataset.target[-100:] != 'normal.'))
assert(all(dataset.target[:100] == 'normal.'))

That is because shuffling should be done in fetch_kddcup99 not in _fetch_brute_kddcup99.

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