fix minor bug in readme generation

This commit is contained in:
Bin Yang
2021-04-06 19:36:17 -04:00
parent 855be75c33
commit 491da0132b
2 changed files with 10 additions and 10 deletions
+8 -8
View File
@@ -26,7 +26,7 @@ ___
# Trading
## Deep Learning ([Wiki](https://github.com/firmai/financial-machine-learning/wiki/deep_learning))
<!-- [PLACEHOLDER_START:{clean_category_name}] -->
<!-- [PLACEHOLDER_START:deep_learning] -->
| <sub>repo</sub> | <sub>comment</sub> | <sub>created_at</sub> | <sub>last_commit</sub> | <sub>star_count</sub> | <sub>repo_status</sub> | <sub>rating</sub> |
|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------|:--------------------------|:------------------------|:------------------------------------|:--------------------|
| <sub>[Stock-Prediction-Models](https://github.com/huseinzol05/Stock-Prediction-Models)</sub> | <sub>NEW</sub> | <sub>12/18/17 10:49</sub> | <sub>1/5/21 10:31</sub> | <sub>3584.0</sub> | <sub>:heavy_check_mark:</sub> | <sub>:star:x5</sub> |
@@ -38,11 +38,11 @@ ___
| <sub>[Personae](https://github.com/Ceruleanacg/Personae)</sub> | <sub>NEW</sub> | <sub>3/10/18 11:22</sub> | <sub>9/2/18 17:21</sub> | <sub>1142.0</sub> | <sub>:heavy_multiplication_x:</sub> | <sub>:star:x5</sub> |
| <sub>[Deep-Reinforcement-Learning-for-Automated-Stock-Trading-Ensemble-Strategy-ICAIF-2020](https://github.com/AI4Finance-LLC/Deep-Reinforcement-Learning-for-Automated-Stock-Trading-Ensemble-Strategy-ICAIF-2020)</sub> | <sub>NEW</sub> | <sub>7/26/20 13:12</sub> | <sub>1/21/21 18:11</sub> | <sub>542.0</sub> | <sub>:heavy_check_mark:</sub> | <sub>:star:x4</sub> |
| <sub>[awesome-deep-trading](https://github.com/cbailes/awesome-deep-trading)</sub> | <sub>curated list of papers/repos on topics like CNN/LSTM/GAN/Reinforcement Learning etc. Categorized as deep learning for now but there are other topics here. Manually maintained by cbailes</sub> | <sub>11/26/18 3:23</sub> | <sub>1/1/21 9:41</sub> | <sub>528.0</sub> | <sub>:heavy_check_mark:</sub> | <sub>:star:x4</sub> |
| <sub>[Neural Network](https://github.com/VivekPa/IntroNeuralNetworks)</sub> | <sub>Neural networks to predict stock prices.</sub> | <sub>9/10/18 6:34</sub> | <sub>11/21/18 7:39</sub> | <sub>488.0</sub> | <sub>:heavy_multiplication_x:</sub> | <sub>:star:x4</sub> |<!-- [PLACEHOLDER_END:{clean_category_name}] -->
| <sub>[Neural Network](https://github.com/VivekPa/IntroNeuralNetworks)</sub> | <sub>Neural networks to predict stock prices.</sub> | <sub>9/10/18 6:34</sub> | <sub>11/21/18 7:39</sub> | <sub>488.0</sub> | <sub>:heavy_multiplication_x:</sub> | <sub>:star:x4</sub> |<!-- [PLACEHOLDER_END:deep_learning] -->
## Reinforcement Learning ([Wiki](https://github.com/firmai/financial-machine-learning/wiki/reinforcement_learning))
<!-- [PLACEHOLDER_START:{clean_category_name}] -->
<!-- [PLACEHOLDER_START:reinforcement_learning] -->
| <sub>repo</sub> | <sub>comment</sub> | <sub>created_at</sub> | <sub>last_commit</sub> | <sub>star_count</sub> | <sub>repo_status</sub> | <sub>rating</sub> |
|:------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------|:-------------------------|:-------------------------|:------------------------|:------------------------------|:--------------------|
| <sub>[RL Trading](https://colab.research.google.com/drive/1FzLCI0AO3c7A4bp9Fi01UwXeoc7BN8sW)</sub> | <sub>A collection of 25+ Reinforcement Learning Trading Strategies -Google Colab.</sub> | <sub>nan</sub> | <sub>nan</sub> | <sub>nan</sub> | <sub>:heavy_check_mark:</sub> | <sub></sub> |
@@ -51,11 +51,11 @@ ___
| <sub>[RL V](https://github.com/gstenger98/rl-finance)</sub> | <sub>Building an Agent to Trade with Reinforcement Learning.</sub> | <sub>1/16/19 0:43</sub> | <sub>3/19/20 20:28</sub> | <sub>32.0</sub> | <sub>:heavy_check_mark:</sub> | <sub></sub> |
| <sub>[Pair Trading RL](https://github.com/shenyichen105/Deep-Reinforcement-Learning-in-Stock-Trading)</sub> | <sub>Using deep actor-critic model to learn best strategies in pair trading.</sub> | <sub>5/18/17 16:47</sub> | <sub>5/18/17 16:56</sub> | <sub>241.0</sub> | <sub>:heavy_check_mark:</sub> | <sub></sub> |
| <sub>[RL IV](https://github.com/jjakimoto/DQN)</sub> | <sub>Reinforcement Learning for finance.</sub> | <sub>10/21/16 2:47</sub> | <sub>4/7/17 8:11</sub> | <sub>140.0</sub> | <sub>:heavy_check_mark:</sub> | <sub></sub> |
| <sub>[RL II](https://github.com/deependersingla/deep_trader)</sub> | <sub>reinforcement learning on stock market and agent tries to learn trading.</sub> | <sub>6/11/16 7:27</sub> | <sub>1/22/18 14:35</sub> | <sub>1340.0</sub> | <sub>:heavy_check_mark:</sub> | <sub></sub> |<!-- [PLACEHOLDER_END:{clean_category_name}] -->
| <sub>[RL II](https://github.com/deependersingla/deep_trader)</sub> | <sub>reinforcement learning on stock market and agent tries to learn trading.</sub> | <sub>6/11/16 7:27</sub> | <sub>1/22/18 14:35</sub> | <sub>1340.0</sub> | <sub>:heavy_check_mark:</sub> | <sub></sub> |<!-- [PLACEHOLDER_END:reinforcement_learning] -->
## Other Models ([Wiki](https://github.com/firmai/financial-machine-learning/wiki/other_models))
<!-- [PLACEHOLDER_START:{clean_category_name}] -->
<!-- [PLACEHOLDER_START:other_models] -->
| <sub>repo</sub> | <sub>comment</sub> | <sub>created_at</sub> | <sub>last_commit</sub> | <sub>star_count</sub> | <sub>repo_status</sub> | <sub>rating</sub> |
|:-----------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------|:--------------------------|:-------------------------|:------------------------|:------------------------------|:--------------------|
| <sub>[Trend Following](http://inseaddataanalytics.github.io/INSEADAnalytics/ExerciseSet2.html)</sub> | <sub>A futures trend following portfolio investment strategy.</sub> | <sub>nan</sub> | <sub>nan</sub> | <sub>nan</sub> | <sub>:heavy_check_mark:</sub> | <sub></sub> |
@@ -63,15 +63,15 @@ ___
| <sub>[Fundamental LT Forecasts](https://github.com/Hvass-Labs/FinanceOps)</sub> | <sub>Research in investment finance for long term forecasts.</sub> | <sub>7/22/18 8:14</sub> | <sub>2/17/21 14:39</sub> | <sub>379.0</sub> | <sub>:heavy_check_mark:</sub> | <sub></sub> |
| <sub>[Mixture Models I](https://github.com/BlackArbsCEO/Mixture_Models)</sub> | <sub>Mixture models to predict market bottoms.</sub> | <sub>3/20/17 18:54</sub> | <sub>4/25/17 23:35</sub> | <sub>31.0</sub> | <sub>:heavy_check_mark:</sub> | <sub></sub> |
| <sub>[Short-Term Movement Cues](https://github.com/anfederico/Clairvoyant)</sub> | <sub>Identify social/historical cues for short term stock movement.</sub> | <sub>9/12/16 18:38</sub> | <sub>8/29/18 20:27</sub> | <sub>2157.0</sub> | <sub>:heavy_check_mark:</sub> | <sub></sub> |
| <sub>[Mixture Models II](https://github.com/BlackArbsCEO/mixture_model_trading_public)</sub> | <sub>Mixture models and stock trading.</sub> | <sub>12/11/17 17:05</sub> | <sub>5/13/20 23:50</sub> | <sub>166.0</sub> | <sub>:heavy_check_mark:</sub> | <sub></sub> |<!-- [PLACEHOLDER_END:{clean_category_name}] -->
| <sub>[Mixture Models II](https://github.com/BlackArbsCEO/mixture_model_trading_public)</sub> | <sub>Mixture models and stock trading.</sub> | <sub>12/11/17 17:05</sub> | <sub>5/13/20 23:50</sub> | <sub>166.0</sub> | <sub>:heavy_check_mark:</sub> | <sub></sub> |<!-- [PLACEHOLDER_END:other_models] -->
## Data Processing Techniques and Transformations ([Wiki](https://github.com/firmai/financial-machine-learning/wiki/data_processing_techniques_and_transformations))
<!-- [PLACEHOLDER_START:{clean_category_name}] -->
<!-- [PLACEHOLDER_START:data_processing_techniques_and_transformations] -->
| <sub>repo</sub> | <sub>comment</sub> | <sub>created_at</sub> | <sub>last_commit</sub> | <sub>star_count</sub> | <sub>repo_status</sub> | <sub>rating</sub> |
|:-------------------------------------------------------------------------------|:--------------------------------------------------------------------------|:-------------------------|:-------------------------|:------------------------|:------------------------------|:--------------------|
| <sub>[Advanced ML II](https://github.com/hudson-and-thames/research)</sub> | <sub>More implementations of Financial Machine Learning (De Prado).</sub> | <sub>nan</sub> | <sub>nan</sub> | <sub>nan</sub> | <sub>:heavy_check_mark:</sub> | <sub></sub> |
| <sub>[Advanced ML](https://github.com/BlackArbsCEO/Adv_Fin_ML_Exercises)</sub> | <sub>Exercises too Financial Machine Learning (De Prado).</sub> | <sub>4/25/18 17:22</sub> | <sub>1/16/20 17:25</sub> | <sub>958.0</sub> | <sub>:heavy_check_mark:</sub> | <sub></sub> |<!-- [PLACEHOLDER_END:{clean_category_name}] -->
| <sub>[Advanced ML](https://github.com/BlackArbsCEO/Adv_Fin_ML_Exercises)</sub> | <sub>Exercises too Financial Machine Learning (De Prado).</sub> | <sub>4/25/18 17:22</sub> | <sub>1/16/20 17:25</sub> | <sub>958.0</sub> | <sub>:heavy_check_mark:</sub> | <sub></sub> |<!-- [PLACEHOLDER_END:data_processing_techniques_and_transformations] -->
# Portfolio Management
+2 -2
View File
@@ -69,9 +69,9 @@ def generate_wiki_per_category(output_path, update_readme: bool = True):
with open(os.path.join(PROJECT_ROOT_DIR, 'README.md'), 'w') as f:
table_str = formatted_df.iloc[:10].to_markdown(index=False)
new_str = "<!-- [PLACEHOLDER_START:{clean_category_name}] --> \n"
new_str = f"<!-- [PLACEHOLDER_START:{clean_category_name}] --> \n"
new_str += table_str
new_str += "<!-- [PLACEHOLDER_END:{clean_category_name}] --> \n"
new_str += f"<!-- [PLACEHOLDER_END:{clean_category_name}] --> \n"
search_start = re.escape('<!-- [PLACEHOLDER_START:{}] -->'.format(clean_category_name))
search_end = re.escape('<!-- [PLACEHOLDER_END:{}] -->'.format(clean_category_name))