Skip to content

Read-only X + copy=False Fails for most estimators  #14481

Closed
@jeremiedbb

Description

@jeremiedbb

calling fit or transform fails for most estimators having a copy or copy_x or copy_X parameter (see #14480).

We could

  • raise an error with a more informative message.
  • emit a warning and copy the data
  • copy data silently and say in the docstring that even if copy=False a copy will still be made if X is read-only (we already do that for other reasons)

WDYT ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions