Skip to content

keepdevops/greenline_neuralnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Greenline neuralnet for statistical analysis

Stock Grok Analysis

Advanced GUI Application for Stock Market Analysis, Machine Learning Forecasting & Trading Visualization

Python License: MIT Last Commit Stars

Stock Grok Analysis is a powerful, desktop GUI application that combines modern machine learning techniques with an intuitive interface for analyzing stock market data, training predictive models, generating trading signals, and creating publication-quality visualizations.

Built for quantitative analysts, algorithmic traders, data scientists, and researchers who want more control than typical web platforms offer — but prefer a cohesive GUI over fragmented Jupyter notebooks.

✨ Key Features

  • Wide data format support — CSV, JSON, Parquet, Feather, HDF5, DuckDB, Arrow, Pickle
  • 11 specialized financial & ML visualization types (price + predictions, volatility clustering, feature importance, uncertainty bands, cumulative returns, trading signals, etc.)
  • Extensive collection of optimizers — including custom & experimental ones: AMDS, AMDS+, CIPO family, BCIPO-HESM, HESM ensemble, AdaBelief, Lion, RAMS, and more
  • Custom optimizer plugin system — create, hot-reload, and integrate your own optimization algorithms via simple Python classes
  • Interactive plots — zoom, pan, float/dock windows, auto-update, export
  • Constrained optimization support — ideal for portfolio optimization, risk-bounded strategies, box constraints
  • Built-in monitoring — entropy, gradient norms, constraint violation, adaptation history, learning curves

📋 Table of Contents

🚀 Getting Started

System Requirements

  • Python 3.9 or higher
  • Recommended: 8 GB+ RAM (more for large datasets or ensemble optimizers)
  • Modern OS: Windows 10/11, macOS 12+, Linux (Ubuntu 20.04+ recommended)

Required Packages

pip install numpy pandas scikit-learn tensorflow matplotlib pyarrow pandas[parquet,feather,hdf5] duckdb
# Optional / advanced:
# pip install torch  # if using any torch-based models in custom extensions

Installation

Clone the repository

Bashgit clone https://github.com/YOUR_USERNAME/stock-grok-analysis.git
cd stock-grok-analysis

(Recommended) Create & activate virtual environment

Bashpython -m venv venv
source venv/bin/activate    # Linux/macOS
venv\Scripts\activate       # Windows

Install dependencies

Bashpip install -r requirements.txt   # if exists, otherwise install manually as above
⚡ Quick Start
Launch the application:
Bashpython grok_stock.py

Click "Open File" in the File Controls panel
Select a stock data file (CSV, Parquet, etc.)
Choose visualization type from dropdown (e.g. "Stock Price", "Trading Signals")
Train a model: select optimizerset learning rate & iterations → Start Training
Explore plots — float/dock windows for multi-monitor workflows

📊 Data Requirements & Formats
Required columns (case-insensitive detection):

timestamp (datetime)
open, high, low, close (float)
vol or volume (float/integer)
Optional: ticker (string)

Supported formats:













































FormatExtension(s)Best ForCSV.csvUniversal compatibilityParquet.parquetLarge datasets, fast I/OFeather.featherFast read/write, Arrow-basedHDF5.h5, .hdf5Hierarchical multi-ticker dataDuckDB.duckdbSQL-like querying before analysisArrow.arrowIn-memory columnar interchangePickle.pkl, .pickleQuick Python serialization
📈 Visualization Gallery
Available plot types include:

Stock Price (actual vs predicted + confidence bands)
Returns Distribution + normality overlay
Rolling Volatility & clustering
Prediction vs Actual scatter + R²
Residual diagnostics & outlier detection
Learning curves & convergence
Correlation heatmap
Feature importance ranking
Uncertainty & prediction intervals
Trading signals (buy/sell strength)
Cumulative returns & strategy comparison

All plots support interactive zoom/pan, export (PNG/SVG), and floating detached windows.
🧠 Model Training & Optimizers
Built-in Optimizers
OptimizerBest ForKey StrengthComplexityAMDSGeneral-purpose, noisy dataAdaptive momentum + scaling★☆☆☆☆AMDS+Deep networks, time-seriesNesterov, warmup, noise injection★★☆☆☆CIPO / BCIPOConstrained problems (portfolio, risk)Interior-point, box constraints★★★☆☆BCIPO-DropoutUncertainty & generalizationIntegrated Monte-Carlo dropout★★★★☆BCIPO-HESMComplex, multi-asset, HFTEntropy scaling + hybrid ensemble★★★★★AdaBeliefNoisy gradientsBelief in gradient quality★★☆☆☆LionHard landscapesEvolving ensemble learning rates★★★☆☆HESMMulti-modal, uncertain dataEntropy-guided exploration/exploitation★★★★☆
Selection guideline: Start with AMDS → upgrade based on problem constraints and convergence behavior.
Custom Optimizers
Create your own optimizer in three steps:

Click + next to optimizer dropdown
Name it (CamelCase)
Edit the generated file in custom_optimizers/

Template example → MomentumRMSProp (included as reference)
⌨️ Keyboard Shortcuts
(From manual — add your actual bindings here if documented)

Ctrl+O — Open file
Ctrl+S — Save plot
F5    — Refresh / retrain
Esc   — Cancel training

🛠️ Troubleshooting

Out of memory → Use Parquet/DuckDB, reduce batch size, avoid large ensembles
NaN / Inf in training → Check data cleaning, lower learning rate, enable gradient clipping
Optimizer not appearing → Click reload (↻) button after editing custom file
Slow loading → Convert CSV → Parquet once

🤝 Contributing
Contributions welcome!

Fork the repo
Create feature branch (git checkout -b feature/amazing-optimizer)
Commit changes (git commit -m 'Add amazing optimizer')
Push (git push origin feature/amazing-optimizer)
Open Pull Request

Especially interested in:

New optimizer implementations
Additional plot types
Performance improvements
Better error handling & logging
Documentation & examples

📄 License
MIT License — see the LICENSE file for details.

Happy analyzing & trading!
Built with ❤️ for the quant community.

About

Neural net with ability to add more backprogation optimizers and be able to adjuct hyper parameters and open multiple file types.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors