tensorflow / tensorflow/java

How to create a custom Index that is a function of multiple coordinates/dimensions

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

Chưa có ai nhận issue này.

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

Mô tả

I'd like to know if a new feature can be added to have Index knowing about not only its Dimension, but also the other dimensions.

I already shared this with @karllessard , but I'd like to see if we can do something about.
Let me explain: I have a float[rows*columns] table with the actual data and an int[rows*columns] table with permutations to sort each column of the data table separately.

Data table:

data = [ 1.34 0.87 2.45 ]
       [ 0.45 1.56 1.66 ]
       [ 1.02 0.98 0.34 ]

permutations = [ 2 0 2 ]
               [ 0 2 1 ]
               [ 1 1 0 ]

This is a way to have both a sorted and an unsorted version of the data table by using permutations in the indexing when the sorted version is needed.

I was thinking to put the float table in a FloatDataBuffer, then wrap it in a FloatNdArray and create an Index that uses the permutations table. But the fact that we need a separate Index instance for each dimension makes the things complicated (impossible?). Is now the only option to implement my own FloatDataBuffer/FloatNdArray?

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.

Hướng nghiên cứu

Bắt đầu bằng cách đọc các abstraction Index và Dimension, sau đó kiểm tra FloatDataBuffer và FloatNdArray để hiểu cách mỗi dimension nhận Index riêng của mình. So sánh thiết kế đó với các bảng data và permutations đã mô tả. Hoàn tất có nghĩa là xác định xem một Index dùng chung, đa chiều có khả thi hay cần một FloatDataBuffer/FloatNdArray tùy chỉnh; không có file hoặc test cụ thể nào được nêu tên.

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

Đánh giá

Công nghệ
java
Lĩnh vực
data
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
25/100

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.