tensorflow / tensorflow/java

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

オープン
#79 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Java
スター
928
フォーク
227
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず Index と Dimension の抽象化を読み、次に FloatDataBuffer と FloatNdArray を調べて、各次元がどのように独自の Index を受け取るのかを理解します。その設計を、説明されている data テーブルおよび permutations テーブルと比較します。共有された多次元の Index が実現可能か、それともカスタムの FloatDataBuffer/FloatNdArray が必要かを判断できれば完了です。特定のファイルやテストは指定されていません。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
data
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。