machine-learning-for-trading icon indicating copy to clipboard operation
machine-learning-for-trading copied to clipboard

Code for Machine Learning for Algorithmic Trading, 2nd edition.

Results 47 machine-learning-for-trading issues
Sort by recently updated
recently updated
newest added

[17_deep_learning] 02_how_to_use_tensorflow 6 Train Model when run the code: training=model.fit(X, Y, epochs=50, validation_split=.2, batch_size=128, verbose=1, callbacks=[tb_callback]) encountered an error: Epoch 1/50 2/313 [..............................] - ETA: 1:32 - loss: nan -...

Trying to run 04_q_learning_for_trading results in the following error: 118 print(targets.shape) 119 print(targets) --> 120 q_values[[self.idx, actions]] = targets 122 loss = self.online_network.train_on_batch(x=states, y=q_values) 123 self.losses.append(loss) ValueError: shape mismatch: value...

**Describe the bug** I am getting the above runtime error while executing alphalens_signals_quality.ipynb in line from Alphalens library function factor_data = get_clean_factor_and_forward_returns(factor=factor, prices=trade_prices,quantiles=5, periods=(1, 5, 10, 21)) . Appears to...

**Describe the bug** I checked the following error while running Chapter 18. 08_backtesting_with_zipline.ipynb What should I do? This book is very helpful to my study. Thank you. **Import&Settings** ``` from...

From reading the book below what seem like typos: In chapter 4 repeated passage ![image](https://user-images.githubusercontent.com/7609726/104501023-da1be680-55e7-11eb-9e7e-5ae76a65cbbe.png) In chapter 5 calculations of std and variance mixed: ![chptr5_2](https://user-images.githubusercontent.com/7609726/104501575-94135280-55e8-11eb-96bb-5efe47e8517f.jpeg) ![chprt5_1](https://user-images.githubusercontent.com/7609726/104501578-95447f80-55e8-11eb-86cb-195551357798.jpeg)

**Describe the bug** From 03_pyfolio_demo, Modelling Event Risk. Can't find any other events other than from the screenshots. I trace the file back to `interesting_periods.py` it shows a list of...

Update "sa_selenium.py" to account for changes in the HTML tree of seekingalpha.com In particular: - update earnings call pages link - update procedure to get date - update procedure to...

I noticed that it is hard to use several custom bundles with Zipline. I spent a lot of time to replicate the issue so I hope it helps. **How to...

I have followed the installation instruction and got the below error : **\ Traceback (most recent call last): File "", line 1, in File "C:\Users\Administrator\anaconda3\envs\ml4t\lib\site-packages\notebook\nbextensions.py", line 203, in install_nbextension_python m,...

**Line 11** ``` long_signals = ((predictions .where(predictions > 0) .rank(axis=1, ascending=False) > N_LONG) .astype(int)) short_signals = ((predictions .where(predictions < 0) .rank(axis=1) > N_SHORT) .astype(int)) ``` - wouldn't we want to...