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

specifying distance functions

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

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

Từ ngày 16/8/2018.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

There is an inconsistency with how distance functions for different feature dimensions are handled. When an egg is created, the user can optionally pass a dist_funcs dictionary containing distance functions for each feature. This is used in the clustering analyses (fingerprint, temporal). However, when performing naturalistic analyses, a new distance function is assigned, e.g. egg.analyze('spc', match='best', distance='correlation'). This forces the distance function to be 'correlation' for all features. Some possible resolutions:

  1. keep the distance argument, but default to egg.dist_funcs. if a string or function is passed, assume that all features should use that distance function. if a dictionary of feature:function pairs is passed, use these instead of the functions specified in egg.dist_funcs

  2. get rid of the distance argument in the analyze method (always infer it from the egg.dist_funcs dict).

1 seems like a more flexible solution...by default assumes you want to use egg.dist_funcs, but allow the user to modify the distance functions on the fly. @jeremymanning and @paxtonfitzpatrick , can I get your thoughts on this?

Ngôn ngữ chính
Python
Star
22
Fork
10
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 ContextLab/quail

Tất cả issue của ContextLab/quail

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.