Giter Club home page Giter Club logo

state-frequency-memory-stock-prediction's People

Contributors

z331565360 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

state-frequency-memory-stock-prediction's Issues

Some different thoughts about SFM,1st using wavelet ,2nd using CNN as AEs to reduce complexties for RNN to learn

great work and great architecture,but I think for ( financial ) time-series ,DFT or FFT is not enough,because such kind of transform does not provide time-frequency information at the same time . freqs can be obtained but for a certain length time-series ,DFT or FFT do not provide any infornation when are the main freqs happening or when vanished

so I have been thinking about using traditional way of signal processing ,wavelet-transform or EMD-HHT,which provide clear information of time and instantaneous freqs.but it's hard to combine signal processing procedures into a RNN ,may be 2-D LSTM will work better,1st-D for time information and 2nd-D for freqs .

second ,since CNN has really good achievement for classification ,so I guess add some CNNs as autoencoders might improve result

btw ,according to the experiments of the article , SFM have learned the capability of predicting time-series somehow 20 steps away ,but there are no information about how many steps been sent into SFM ,so can you give some hints?

not good

there is something wrong with training, why is not have the size of windon hyperparameter?

Exception when running

"Exception: When using TensorFlow, you should define explicitly the number of timesteps of your sequences. If your first layer is an Embedding, make sure to pass it an "input_length" argument. Otherwise, make sure the first layer has an "input_shape" or "batch_input_shape" argument, including the time axis. Found input shape at layer itosfm_1: (None, None, 1)"
Anyone got idea about this?

error during model build

I set up the environment with the right versions of keras and theano and after fixing some minor issues I am getting the below error when running the command "python test.py --step=1" and I have no idea how to fix it ..

File "test.py", line 50, in
model = build.build_model([1, hidden_dim, 1], freq, 0.01)
File "..\test\build.py", line 55, in build_model
return_sequences=True))
File "C:\Anaconda3\envs\MyEnv\lib\site-packages\keras\models.py", line 107, in add
layer.create_input_layer(batch_input_shape, input_dtype)
File "C:\Anaconda3\envs\MyEnv\lib\site-packages\keras\engine\topology.py", line 341, in create_input_layer
self(x)
File "C:\Anaconda3\envs\MyEnv\lib\site-packages\keras\engine\topology.py", line 485, in call
self.add_inbound_node(inbound_layers, node_indices, tensor_indices)
File "C:\Anaconda3\envs\MyEnv\lib\site-packages\keras\engine\topology.py", line 543, in add_inbound_node
Node.create_node(self, inbound_layers, node_indices, tensor_indices)
File "C:\Anaconda3\envs\MyEnv\lib\site-packages\keras\engine\topology.py", line 148, in create_node
output_tensors = to_list(outbound_layer.call(input_tensors[0], mask=input_masks[0]))
File "C:\Anaconda3\envs\MyEnv\lib\site-packages\keras\layers\recurrent.py", line 213, in call
': ' + str(input_shape))
Exception: When using TensorFlow, you should define explicitly the number of timesteps of your sequences.
If your first layer is an Embedding, make sure to pass it an "input_length" argument. Otherwise, make sure the first layer has an "input_shape" or "batch_input_shape" argument, including the time axis. Found input shape at layer itosfm_1: (None, None, 1)

Has anybody come across this error please? and how did you manage to fix it?

Any help is appreciate because I cannot progress any further..

Thanks

Should the variable A be taken a square root?

In equation 10 of the paper, A_t is taken to the be square root of square(S_re)+square(S_im). However, in line 158 of train/itosfm.py, A_t is taken to be square(S_re)+square(S_im), without the square root. Is this a typo or my understanding is wrong? Thank you very much!

size problem

why do states have the index of 0-7 instead of 0-4?

can't run with --version keras 2.1.5

Thanks for your realizations from the paper. I am just curious about the data structure from the part of "Test with pretrained model".
Also, I checked out the Keras document and refered to section of "Writing your own Keras layers" and still have the problems as following:

TypeError: ('Keyword argument notunderstood:', 'input_dim')

I tried different ways to fix this but doesn't work, can you help revise it , thx!!
PS. I adjusted initializations to initializers (keras 2.1.5)

running error

when i run python test.py --step=1, i got the following errors:

Using TensorFlow backend.

Loading data...
<type 'numpy.ndarray'>
Traceback (most recent call last):
File "test.py", line 35, in
X_train, y_train, X_val, y_val, X_test, y_test, gt_test, max_data, min_data = build.load_data(data_file, step)
File "/home/canl/nick/State-Frequency-Memory-stock-prediction/test/build.py", line 30, in load_data
x_train = data[:,:train_split]
TypeError: slice indices must be integers or None or have an index method

bc my pandas or numpy is wrong version??
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.