Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

fix: kg_emb broken import in PyHealth 2.0

Đang mở
#952 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

@userjuma đang làm issue này rồi.

Từ ngày 19/8/2026.

  • #953 của @capccode — đã đóng, không merge
  • #1140 của @MadhukarJukanti — đã đóng, không merge
  • #1192 của @userjuma — đang mở
  • #1202 của @AxelNoun — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

Start by locating the eight files under kg_emb.models and kg_emb/datasets mentioned in the issue, then check where they import SampleBaseDataset and how PyHealth 2.0 defines SampleDataset. Verify the failure by importing pyhealth.medcode.pretrained_embeddings; done means the import succeeds without breaking the affected modules. Several linked pull requests are open, so check their status before starting.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

kg_emb/ references SampleBaseDataset which appears to have been renamed to SampleDataset in PyHealth 2.0. Anyone who imports pyhealth.medcode.pretrained_embeddings gets an ImportError and package would crash immediately. Found this while implementing KEEP embeddings in personal fork. Currently adding a try/e bandaid in my fork but is out of scope for the KEEP work. Likely impacts all 6 files in kg_emb.models and the 2 in kg_emb/datasets. I can rename SampleBaseDataset --> SampleDataset across the 8 files if no one gets to it.

Ngôn ngữ chính
Python
Star
1.7k
Fork
803
Merge trung bình
5 ngày 16 giờ
Pull request đã merge (30 ngày)
58

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của sunlabuiuc/PyHealth

Tất cả issue của sunlabuiuc/PyHealth

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.