Ceruleanacg / Personae

📈 Personae is a repo of implements and environment of Deep Reinforcement Learning & Supervised Learning for Quantitative Trading.
MIT License
1.33k stars 335 forks source link

Question about the mix_index_state #15

Closed xiaoqinzhe closed 6 years ago

xiaoqinzhe commented 6 years ago

Of the Market initial function parameters, the mix_index_state mean that whether the index code 'sh' is included into market's code. I want to know that whether the code 'sh' is a stock/future index data and if yes, how can i get it and why you use it? Hope you can give me response, thank you very much!

Ceruleanacg commented 6 years ago

Sorry for the confusing parameters in the options, I have not updated the options doc in time.

mix_index_state is a option that decides whether the state or sequence data will concatenate index data like SH000001.

Thank you very much.

Ceruleanacg commented 6 years ago

Sorry! That’s my fault, I wrote a bug when adding the feature of mix_index_state, now it has been fixed, sorry for that.

在 2018年5月16日,上午1:38,JS00000 notifications@github.com 写道:

Can we set mix_index_state=false? But if I did this, something got wrong.

Traceback (most recent call last): File "algorithm/SL/NaiveLSTM.py", line 108, in main(model_launcher_parser.parse_args()) File "algorithm/SL/NaiveLSTM.py", line 103, in main algorithm.run() File "/Users/yyx/Documents/Code/python/priceprediction/Personae/base/algorithm/model.py", line 242, in run self.train() File "algorithm/SL/NaiveLSTM.py", line 55, in train , loss = self.session.run([self.train_op, self.loss], feed_dict={self.x: batch_x, self.label: batch_y}) File "/Users/yyx/anaconda/envs/py35/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 889, in run run_metadata_ptr) File "/Users/yyx/anaconda/envs/py35/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1096, in _run % (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape()))) ValueError: Cannot feed value of shape (32, 1) for Tensor 'Placeholder_1:0', which has shape '(?, 2)' — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Ceruleanacg/Personae/issues/15#issuecomment-389232871, or mute the thread https://github.com/notifications/unsubscribe-auth/AD3en1-uiD78eRfM3lLoS14ITZAGcmmrks5tywSRgaJpZM4T-4o8.