Open ron-weiner opened 6 years ago
i am trying to make a plstm_classifier using the code of https://github.com/guillaume-chevalier/LSTM-Human-Activity-Recognition and your plsm cells. i'm having troubles understanding the needed dimensions and params..
I added how i've tried oto combine it, basically this change:
lstm_cell_1 = PhasedLSTMCell(config.n_hidden) lstm_cell_2 = PhasedLSTMCell(config.n_hidden)
#lstm_cell_1 = tf.contrib.rnn.BasicLSTMCell(config.n_hidden, forget_bias=1.0, state_is_tuple=True) #lstm_cell_2 = tf.contrib.rnn.BasicLSTMCell(config.n_hidden, forget_bias=1.0, state_is_tuple=True) #lstm_cells = tf.contrib.rnn.MultiRNNCell([lstm_cell_1, lstm_cell_2], state_is_tuple=True) initial_states = [LSTMStateTuple(tf.zeros([config.batch_size, config.n_hidden], tf.float32), tf.zeros([config.batch_size, config.n_hidden], tf.float32)) for _ in range(config.n_inputs)] # Get PLSTM cell output outputs, states = multiPLSTM([lstm_cell_1, lstm_cell_2], _X, config.n_steps,config.n_inputs, initial_states) # Previous lstm cell output before change - for stm moder #outputs, states = tf.contrib.rnn.static_rnn(lstm_cells, _X, dtype=tf.float32)
But i encounter lots if issues which i hoe can be solved easily..
SOS pls :)
error1.txt error2.txt plstm_classifier.txt
I haven't had the time to run a sanity check for tensorflow 1.4. Does the example in the repo run smoothly? If yes I suggest you take a look at that which is exactly a multilayer PLSTM for classification.
i am trying to make a plstm_classifier using the code of https://github.com/guillaume-chevalier/LSTM-Human-Activity-Recognition and your plsm cells. i'm having troubles understanding the needed dimensions and params..
I added how i've tried oto combine it, basically this change:
Define two stacked PLSTM cells (two recurrent layers deep) with tensorflow
lstm_cell_1 = PhasedLSTMCell(config.n_hidden) lstm_cell_2 = PhasedLSTMCell(config.n_hidden)
Previous lstm cells for lstm model
But i encounter lots if issues which i hoe can be solved easily..
SOS pls :)
error1.txt error2.txt plstm_classifier.txt