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

Test datatype for when passed for compuation

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

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

Từ ngày 1/8/2020.

Đánh giá

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

Mô tả

Severity: 3 - Medium :unamused: Status: Available :wave: Type: Improvement :chart_with_upwards_trend:

Description

When we call the result function, we just pass the python list as it is.

x = pydp.BoundedMean(1.0)
x.result([1,2,3,4])

What would be great is mention the datatype of the list in another argument,
x.result([1,2,3,4], 'int')
We want the new function definition to have the datatype as one of the argument, with float as the default argument.
Note: The function definition of result below is for representation purpose and the original code will be in c++ (pybind11).

def result(list, datatype= 'float'): 
  pass

The idea behind doing this is if we know the datatype, the underlying c++ code can become a lot efficient as right now, we are just converting everything to float.

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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 OpenMined/PyDP

Tất cả issue của OpenMined/PyDP

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.