Keras LSTM-RNN layer
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 928
- フォーク
- 227
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Please make sure that this is a feature request. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:feature_template
System information
- TensorFlow version (you are using): 2.3.1
- Are you willing to contribute it (Yes/No): Yes, when able and available
Describe the feature and the current behavior/state.
There is a high-level API on Keras to LSTM layers on top of RNN that allows getting LSTM output as simple as this:
lstm_module = LSTMModule(5)
lstm_input = tf.constant([[0.1, 0.2], [0.3, 0.4]], shape=[1, 2, 2])
lstm_output = lstm_module(lstm_input)
A definition of the LSTM Layer with Model Subclassing API from Tensorflow:
class LSTMModule(tf.keras.layers.Layer):
def __init__(self, lstm_dims):
super().__init__()
self.lstm_dims = lstm_dims
self.lstm = LSTM(lstm_dims, return_sequences=True, return_state=True)
def call(self, inputs):
# Forward pass
ini_hidden_state = tf.zeros(shape=[1, self.lstm_dims]), tf.zeros(shape=[1, self.lstm_dims])
return self.get_lstm_output(self.lstm, inputs, ini_hidden_state)
@staticmethod
def get_lstm_output(lstm_model, input_sequence, initial_state):
output = lstm_model(input_sequence, initial_state=initial_state)
hidden_states, hidden_state, cell_state = output[0], output[1], output[2]
return hidden_states, hidden_state, cell_state
Will this change the current api? How?
This will add a new feature to tensorflow-framework module.
Who will benefit with this feature?
Anyone that requires deep learning to solve sequence classification and prediction problems and everyone who is already familiar with Keras.
Any Other info.
This feature comes from #270
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
ファイルやテストは指定されていません。まず issue #270 と、Keras スタイルの LSTM/RNN レイヤーのリクエストに関連する既存の tensorflow-framework API を確認してください。要求された高レベル LSTM API がこのリポジトリに属するかどうかを明確にし、その実装範囲を定義できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, tensorflow
- 領域
- machine-learning
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100