Chuyển đến nội dung
Skillpedia
Học máy51k · #3547

pytdc

Skill này làm gì

PyTDC là công cụ giúp các nhà khoa học tìm và sử dụng dữ liệu cho nghiên cứu khám phá thuốc. Nó cho phép bạn tìm bộ dữ liệu, tải thông tin và đánh giá kết quả kiểm thử.

Khi nào nên dùng

  • ✓Khi bạn cần tìm dữ liệu về thử nghiệm thuốc.
  • ✓Khi cần tải bộ dữ liệu để phân tích.
  • ✓Khi cần đánh giá độ chính xác của các mô hình dự đoán thuốc.

Liên kết skill

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/pytdc/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/pytdc/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Có những bộ dữ liệu nào cho nghiên cứu độc tính của thuốc?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

PyTDC tổ chức và cung cấp quyền truy cập vào dữ liệu nghiên cứu thuốc. Bạn có thể chọn dữ liệu nào cần dùng và cách đánh giá, mà không cần tải tất cả cùng lúc.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

PyTDC (Therapeutics Data Commons)

Use the official PyTDC distribution (import tdc) to discover therapeutic ML tasks, load approved datasets, apply task-appropriate splits, evaluate predictions, and work with curated benchmark groups. Prefer package metadata over copied dataset lists, and plan network/storage effects before constructing any loader.

Verified snapshot

  • Research date: 2026-10-01
  • PyPI stable: PyTDC 1.1.15, released 2025-03-31
  • Package/source repository: mims-harvard/TDC
  • Code license: MIT
  • PyPI supplies only a source distribution and declares no Requires-Python
  • The dependency graph makes CPython 3.11 the reproducible target used here: cellxgene-census==1.15.0 excludes Python 3.12, and PyTDC's constrained RDKit release has no CPython 3.13 wheel
  • PyTDC imports deprecated pkg_resources at runtime. Setuptools 82 removed that module; pin the verified compatibility release setuptools 80.9.0.
  • tdc.readthedocs.io still identifies itself as TDC 0.4.1; use it as API cross-reference, not as release-version evidence
  • Upstream publishes no GitHub tags/releases or maintained changelog. Treat undocumented migration claims as uncertainty and verify against the installed 1.1.15 source/metadata.

See references/sources.md for dated evidence and known documentation conflicts.

Installation

Use an isolated CPython 3.11 environment and pin the reviewed snapshot:

uv venv --python 3.11 .venv-pytdc
uv pip install --dry-run --python .venv-pytdc/bin/python \
  "setuptools==80.9.0" "PyTDC==1.1.15"
uv pip install --python .venv-pytdc/bin/python \
  "setuptools==80.9.0" "PyTDC==1.1.15"

The current macOS ARM64 test resolution installed 128 packages, including large scientific/ML dependencies, so the environment itself can transfer and occupy hundreds of megabytes before any dataset is downloaded. Review the dry run and available disk first. The direct pins identify the reviewed API snapshot; generate a platform-specific uv.lock in the user's project when every transitive version must also be frozen.

For an ephemeral command:

uv run --no-project --isolated --python 3.11 \
  --with "setuptools==80.9.0" --with "PyTDC==1.1.15" \
  python scripts/discover_metadata.py --kind tasks

To check for a newer release, inspect the PyPI release history at https://pypi.org/project/pytdc/. Before changing the pin, compare its source distribution, dependencies, official repository, task registries, and smoke tests; do not silently substitute the separate pytdc-nextml package.

Non-negotiable data and network policy

  1. Discover first. Reading tdc.metadata or using scripts/discover_metadata.py does not instantiate a loader or download data.
  2. Plan second. Record the exact task/dataset, official task page, license, expected size, cache directory, split, metric, and reproducibility seed.
  3. Confirm the authorized scope before downloading. Loader constructors fetch missing data. Some datasets and benchmark-group archives are large; model-backed oracles can fetch checkpoints; remote/docking oracles can transmit molecular structures.
  4. Execute within that scope. In bundled CLIs, --execute acknowledges execution and --download is additionally required for MolGen corpora or supported oracle checkpoints.
  5. Keep outputs bounded. Emit counts, schema, and small previews rather than full datasets, sequences, prediction arrays, or molecule corpora.

Cache and cost behavior

  • Ordinary loaders default to path="./data" and save files beneath that path. The bundled scripts instead default to explicit .pytdc-* directories.
  • Core downloads use Harvard Dataverse file endpoints when a local filename is absent. Newer resource classes may use other upstream services.
  • admet_group(path=...) and other benchmark-group constructors download and extract the group archive when <path>/<group> is absent.
  • Download-backed Oracle(...) construction uses ./oracle internally. The bundled oracle CLI changes into a safe runtime directory before approved calls.
  • PyTDC 1.1.15 does not provide a universal cache quota, eviction policy, or dataset-wide checksum manifest. Use scripts/cache_audit.py and manage disk retention explicitly.
  • Network transfer, local storage, decompression, parsing, feature generation,

…

Câu hỏi thường gặp

“Therapeutics Data Commons” là gì?

Đây là các bộ sưu tập dữ liệu được tổ chức có hệ thống, nhằm hỗ trợ nghiên cứu và phát triển thuốc mới.

Tôi có cần tải toàn bộ dữ liệu để bắt đầu không?

Không. Bạn có thể tìm trước xem có những dữ liệu nào, rồi chọn những gì cần tải.

Công cụ này có miễn phí không?

Mã nguồn PyTDC được cấp phép MIT, nhưng dữ liệu và các tác vụ có thể có giấy phép khác. Bạn nên kiểm tra điều khoản của từng bộ dữ liệu.

Chi tiết

Mô tả gốc của tác giả

Provides Therapeutics Data Commons workflows through PyTDC for registry discovery, dataset access, task-aware splits, evaluator metrics, benchmark groups, and bounded molecular-oracle scoring. Use when working with TDC therapeutic ML datasets or benchmarks.

repo: K-Dense-AI/scientific-agent-skills

Độ phổ biến

Sao GitHub
51k
Vị trí xếp hạng
#3547
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự