probabilistic_wavenet_fx

所属分类:数学计算
开发工具:Jupyter Notebook
文件大小:0KB
下载次数:0
上传日期:2020-06-06 05:33:59
上 传 者sh-1993
说明:  具有外汇和经济新闻数据的概率和方向Relu Wavenet,
(Probabilistic and Directional Relu Wavenet with forex and economic news data,)

文件列表:
.ipynb_checkpoints/ (0, 2020-06-05)
.ipynb_checkpoints/data_merger-checkpoint.ipynb (846075, 2020-06-05)
.ipynb_checkpoints/news_transformer-checkpoint.ipynb (45497, 2020-06-05)
.ipynb_checkpoints/resampler-checkpoint.ipynb (1005570, 2020-06-05)
.ipynb_checkpoints/wavenet_fx-checkpoint.ipynb (203681, 2020-06-05)
.ipynb_checkpoints/wavenet_fx2-checkpoint.ipynb (147358, 2020-06-05)
.ipynb_checkpoints/wavenet_fx_final-checkpoint.ipynb (1082693, 2020-06-05)
bar_feature_hist.jpg (169036, 2020-06-05)
data_merger.ipynb (846075, 2020-06-05)
data_preparation.md (5602, 2020-06-05)
model.png (48754, 2020-06-05)
model_no_f (14026, 2020-06-05)
model_no_f.png (14026, 2020-06-05)
model_no_f_nosparse.png (41026, 2020-06-05)
model_nofut_nosparse.h5 (4879224, 2020-06-05)
model_nofut_trans.h5 (5252424, 2020-06-05)
model_ret_noact.h5 (4880328, 2020-06-05)
model_ret_pos.png (41026, 2020-06-05)
model_ret_prob.h5 (4923008, 2020-06-05)
model_ret_prob.png (76280, 2020-06-05)
model_ret_prob_f.h5 (4954480, 2020-06-05)
model_ret_prob_f.png (77707, 2020-06-05)
model_ret_prob_f2.h5 (1698992, 2020-06-05)
model_return_neg.h5 (4883248, 2020-06-05)
model_return_pos.h5 (4880152, 2020-06-05)
model_test.h5 (2249776, 2020-06-05)
model_wn_no_f.h5 (2239488, 2020-06-05)
model_wn_no_f_return.h5 (2250816, 2020-06-05)
news_transformer.ipynb (45497, 2020-06-05)
prob_devs.npy (595584, 2020-06-05)
prob_devs_f.npy (595584, 2020-06-05)
prob_means.npy (595584, 2020-06-05)
prob_means_f.npy (595584, 2020-06-05)
prob_weights.npy (595584, 2020-06-05)
prob_weights_f.npy (595584, 2020-06-05)
resampler.ipynb (1005570, 2020-06-05)
wavenet_fx.ipynb (203681, 2020-06-05)
... ...

# Wavenet variations for financial time series prediction: the simple, the directional-Relu, and the probabilistic approach Article on medium about the goals and the model: https://medium.com/@istvan.veber/wavenet-variations-for-financial-time-series-prediction-the-simple-the-directional-relu-and-the-4860d8a97af1 Data preprocessing and pipeline manual: https://github.com/sinusgamma/probabilistic_wavenet_fx/blob/master/data_preparation.md My goal is to forecast forex bar features of the upcoming step. Forecasted pairs: EUR/USD, GBP/USD, and JPY/USD (not the more common USD/JPY). We will forecast simple price values, log-returns, and the directions of changes. We will play a bit with the Relu activation as output. With activation functions as output, we can determine the codomain of our models. At the end, we will build the Wavenet model with distribution output. For that, we will use the Tensorflow probability library. We will forecast features calculated from the tick means of the bar ranges, and not OHCL. Tick means are more representative measurements of the prices during the bar period, and not so noisy as the closing price. It is easier for a model to find patterns if we use means. The data inputs have two main components: - features generated from tick data during a 5-minute range (source: Dukascopy) - features generated from economic news calendar (source: FXStreet) Generating hundreds of features required compromises and arbitrary choices. The data preparation article is coming, preparing the data took a longer time than building the models and training them. In the article, Financial bars at the age of deep learning, you can read about some of the ideas. To feed the data to our model we will use the Tensorflow dataset API. For training, we will use the 2016–2018 period, and 2019 is the validation period. For simplicity, I didn’t use separate test data. The models were trained on Google Cloud AI Platform. The notebook with the code is available on Github: https://github.com/sinusgamma/probabilistic_wavenet_fx/blob/master/wavenet_fx_final.ipynb

近期下载者

相关文件


收藏者