<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Deep Learning | Aaron3963</title><link>https://aaron3963.github.io/tags/deep-learning/</link><atom:link href="https://aaron3963.github.io/tags/deep-learning/index.xml" rel="self" type="application/rss+xml"/><description>Deep Learning</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Sat, 14 Jun 2025 00:00:00 +0000</lastBuildDate><image><url>https://aaron3963.github.io/media/icon_hu3009652487647302230.png</url><title>Deep Learning</title><link>https://aaron3963.github.io/tags/deep-learning/</link></image><item><title>Attention LSTM for Stock Price Prediction</title><link>https://aaron3963.github.io/project/lstm/</link><pubDate>Sat, 14 Jun 2025 00:00:00 +0000</pubDate><guid>https://aaron3963.github.io/project/lstm/</guid><description>&lt;p>In this project paper, I proposed an LSTM model with a self-attention mechanism for predicting individual stock prices, specifically targeting Nvidia (NVDA). My motivation was to improve upon traditional LSTMs by integrating the attention mechanism&amp;rsquo;s ability to dynamically weight important time steps, which helps capture long-term dependencies that standard LSTMs often miss. I also emphasized the importance of feature engineering, incorporating not just OHLCV data but also macroeconomic indicators and commodity prices—such as lithium, copper, and gold—that are relevant to Nvidia&amp;rsquo;s supply chain.&lt;/p>
&lt;p>My experiments compared three models: a baseline LSTM, a variant derived from AMV-LSTM, and my proposed Attention LSTM. While the variant performed best on training data with an F1 score of 0.891, it severely overfitted and collapsed on the test set with a score of only 0.094. In contrast, my Attention LSTM achieved the highest test F1 score of 0.629, outperforming the baseline by 2% and demonstrating better generalization. I also found that models trained with only OHLCV data performed no better than random guessing, confirming that multi-dimensional features are crucial for this task.&lt;/p>
&lt;p>I conclude that combining LSTM with attention mechanisms offers a promising direction for stock forecasting, particularly when augmented with diverse macroeconomic and commodity data. Future work could explore deeper attention-augmented architectures and incorporate semantic information like news sentiment to further enhance predictive performance.&lt;/p></description></item></channel></rss>