feat: Add CLI Commands for Browsing and Searching OpenML Tasks
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- python
- 領域
- cli, machine-learning
調査の方向性
Start in openml/cli.py, following the existing configure and models command patterns and the tasks_list(), tasks_info(), and tasks_search() entry points. Then read tests/test_openml/test_cli.py and the existing openml.tasks.list_tasks() and get_task() APIs. Done means the three tasks subcommands support the described arguments and mocked tests pass.
索引モデルが issue の本文から書いたものです。
説明
Metadata
New Tests Added: Yes
Documentation Updated: No (CLI help text serves as documentation)
Change Log Entry: "Add CLI commands for browsing and searching OpenML tasks: openml tasks list, openml tasks info, and openml tasks search"
Details
What does this PR implement/fix?
This PR adds three new CLI subcommands under openml tasks to improve the user experience of the task catalogue:
openml tasks list - List tasks with optional filtering (tag, task_type, size, pagination, output format)
openml tasks info <task_id> - Display detailed information about a specific task including dataset, task type, target feature, and evaluation measure
openml tasks search - Search tasks by associated dataset name with case-insensitive matching
Why is this change necessary? What is the problem it solves?
Currently, users must write Python code to browse or search OpenML tasks, even for simple tasks like listing available tasks or finding tasks for a specific dataset. This creates a barrier to entry and makes the task catalogue less accessible. Adding CLI commands allows users to interact with the task catalogue directly from the command line without writing code.
This directly addresses the ESoC 2025 goal of "Improving user experience of the task catalogue in AIoD and OpenML".
How can I reproduce the issue this PR is solving and its solution?
Before (requires Python code):
import openml
tasks = openml.tasks.list_tasks(size=10)
for tid in tasks:
task = openml.tasks.get_task(tid)
print(f"{tid}: {task.task_type}")
After (CLI commands):
# List first 10 tasks
openml tasks list --size 10
# Search for tasks related to iris dataset
openml tasks search iris
# Get detailed info about a task
openml tasks info 1
# List classification tasks with a specific tag
openml tasks list --task-type "Supervised Classification" --tag study_14 --format table
# List tasks with pagination
openml tasks list --offset 20 --size 10
Implementation Details:
Added three new functions in openml/cli.py: tasks_list(), tasks_info(), and tasks_search()
Integrated into main CLI parser with proper argument handling
Added comprehensive test suite in tests/test_openml/test_cli.py
Uses existing openml.tasks.list_tasks() and openml.tasks.get_task() functions - no changes to core API
Follows existing CLI patterns (similar to configure and models commands)
All tests use mocked API calls to avoid requiring server connections
Any other comments?
All pre-commit hooks pass (ruff, mypy, formatting)
No breaking changes
Follows project code style and patterns
Ready for review
- 主要言語
- Python
- スター
- 361
- フォーク
- 296
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
openml/openml-python のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
openml/openml-python#1749 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
openml/openml-python#1746 ·
-
Documentation Good First Issue
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
openml/openml-python#1708 · コメント 6 件 ·
-
Good First Issue module:Run testing
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
openml/openml-python#1646 · コメント 7 件 · リアクション 2 件 ·
-
Good First Issue module:Data testing
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
openml/openml-python#1644 · コメント 4 件 ·
openml/openml-python の issue をすべて見る
似ている issue
-
essnmx good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
[Feature] 奇物选择添加优先级 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
syfoud/Simulated_Scepter#174 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Giskard-AI/giskard-oss#2840 · コメント 1 件 ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success オープンarea: repo bug perceived difficulty: 2
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
yeti-platform/yeti#1380 ·