- Home
- Skills
- Trading & Investing
- stock transfer forecast
stock transfer forecast
Train high-scoring LSTM stock models using index-to-ticker transfer learning for better generalization on thin data.
Free
stock transfer forecast
Example session with this skill installed
I need a 5-day forecast for NVDA. Train a child model using a fine-tune strategy since it has a high beta, then run the prediction.
- Read your context and instructions
- Compiled the stock transfer forecast
I have completed the transfer learning process for NVDA. I initialized the child model using the pre-trained S&P 500 parent weights and applied a fine-tuning strategy at a 1e-4 learning rate to capture NVDA's specific volatility patterns.
NVDA 5-Day Forecast
| Metric | Value |
|---|---|
| Last Close | 135.58 |
| Forecast Horizon | 5 Trading Days |
| Direction | Bullish |
| Expected Change | +2.45% |
| Strategy Used | fine_tune |
Predicted Price Path
| Day | Forecasted Close | Log Return |
|---|---|---|
| 1 | 136.12 | 0.00397 |
| 2 | 137.05 | 0.00681 |
| 3 | 136.88 | -0.00124 |
| 4 | 138.22 | 0.00974 |
| 5 | 138.91 | 0.00498 |
Model Performance Metrics
- Directional Accuracy (5d): 62.5%
- Majority Class Baseline: 54.2%
- RMSE (Log Returns): 0.0184
Next steps
- Compare Strategies: Run
train-child --ticker NVDA --strategy freezeto see if locking the recurrent layers improves the directional accuracy. - Review Features: Check
data/features.parquetto verify the RSI and MACD inputs for the latest training window. - Sector Alignment: If accuracy is lower than expected, consider retraining the parent on
^IXIC(Nasdaq) to better match NVDA's tech-heavy profile.
Connects securely to your tools. The creator never sees your data.
About this skill
Training a deep sequence model for a single stock often fails because there is not enough clean history to generalize. This skill implements a parent-to-child LSTM transfer learning recipe that trains once on a broad index and adapts to specific tickers with minimal data.
What it does
- Index-to-Ticker Transfer trains a parent LSTM on high-volume indices like
^GSPCto learn general market dynamics. - Adaptive Strategy Selection offers
freezeorfine_tunemodes to match a ticker's liquidity and history depth. - Multivariate Forecasting predicts a 5-day horizon for 7 features simultaneously to maintain internal consistency.
- Log Return Focus targets stationary log returns instead of trending price levels to ensure learnable patterns.
- Automated Reconversion handles the transformation from log returns back into actionable price forecasts and percentages.
How it works
- Train Parent runs a session on a broad index to establish a base model of momentum and mean reversion.
- Train Child adapts the parent weights to a specific ticker using either frozen recurrent layers or a reduced learning rate.
- Predict generates a 5-day JSON forecast including close prices, change percentages, and direction.
- Evaluate compares
DirectionAccuracy_5dagainst a majority class baseline to validate the transfer's effectiveness.
Frameworks & tools
Python, PyTorch, yfinance, Pandas, Scikit-learn, Joblib, and NumPy.
Why this beats prompting it yourself
Standard prompts cannot execute the specialized weight-loading and layer-freezing logic required for transfer learning. This skill handles the complex state management between parent artifacts and child fine-tuning that manual coding often gets wrong.
Use cases
- Forecast tickers with less than 3 years of history using index-level market knowledge.
- Compare fine-tuning versus freezing strategies to see which best captures a stock's unique beta.
- Build sector-specific parent models to improve accuracy for tech or international equities.
- Generate multi-day price projections based on historical volume and technical indicators.
Known limitations
Forecasts rely solely on price and volume, ignoring earnings, news, and macro events. Accuracy decays significantly beyond a ten-day horizon and requires retraining during market regime changes.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 16 days ago
- Free with an Agensi account
- Software
- Requires
Python 3.10+Internet connection (Yahoo Finance price data)Optional
First run trains the parent on ~20 years of index data: 8-15 min on CPU, under 2 on GPU. Don't kill it. Every ticker needs that parent trained once first; children take about a third as long. Price data comes from Yahoo Finance, which rate-limits occasionally; rerun if a fetch fails. NVIDIA GPU…
Permissions
What's inside
Frequently Asked Questions
New in Trading & Investing
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Trading & Investing.