scikit-learn / scikit-learn/scikit-learn

types in dataset bunches are inconsistent

Open
#5,318 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

module:datasets Needs Decision
Dominant language
Python
Stars
67.3k
Forks
27.4k
Avg merge
1d 15h
Merged PRs (30d)
58

Description

I just saw that iris.feature_names is a list but iris.target_names is an array. That is odd. Not sure how it is for the other datasets.
This is pretty minor but some consistency would be nice.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the types returned by iris.feature_names and iris.target_names, then inspect the corresponding attributes across the other datasets mentioned in the issue. Define a consistent type for these dataset name collections and verify that all affected dataset loaders follow it.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.