Skip to content

feat(skore): limit a project to a single ML task #2179

@thomass-dev

Description

@thomass-dev

Closes https://github.com/probabl-ai/skore-hub/issues/852.

As a user:

  • in an empty project, i can add a report with any ML task (report.ml_task)
  • in a non-empty project, i can only add a report with the same ML task as the previously added report
    • an exception is raised when this condition is not met

In technical terms, in the skore.Project class:

  • during the project initialization, request the project summary to retrieve the list of ML task
    • raise an exception if the list is not uniform
  • every time i put a report, i compare its ML task to the one retrieved previously
    • raise an exception if different

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