# From project directory
./run_ui.sh
# Or manually
streamlit run app.pyOpens at: http://localhost:8501
- Start UI → Browser opens automatically
- Go to Dashboard → See current state (empty if new)
- Configure & Run → Single Run tab
- Adjust parameters → Use defaults or experiment
- Click "Run Single Configuration" → Wait for completion
- Results Explorer → View metrics and details
- Visualizations → See cluster patterns
python main.pypip install -r requirements.txt# All metrics
cat results/metrics/metrics.csv
# Latest log
tail -f logs/*.log | tail -1# From Python
from tools.visualize_clusters import plot_cluster_samples
plot_cluster_samples(run_id=1, cluster_ids=[0,1], n_samples=5)data/- Your OHLCV CSV filesresults/metrics/- Metrics and summariesresults/models/- Saved HDBSCAN modelsresults/labels/- Cluster assignmentsresults/visualizations/- Generated plotslogs/- Execution logs
| Page | Purpose |
|---|---|
| 🏠 Dashboard | Overview and trends |
| 🛠 Configure & Run | Start experiments |
| 📊 Results Explorer | Analyze runs |
| 📈 Visualizations | View patterns |
| 📄 Logs | Debug and monitor |
| 💾 Model Manager | Manage storage |
| Parameter | Typical Range | Description |
|---|---|---|
| Window Size | 10-15 | Bars per pattern |
| Min Cluster Size | 10-15 | Minimum samples in cluster |
| Min Samples | 5-10 | Core point neighbors |
| Metric | euclidean | Distance measure |
Good Run:
- Silhouette Score > 0.6
- Noise Ratio < 10%
- Multiple distinct clusters (2-10)
Needs Tuning:
- Silhouette Score < 0.4
- Noise Ratio > 20%
- Only 1 cluster or all noise
UI won't start:
pip install streamlit plotly
streamlit run app.py --server.port 8502No GPU detected (optional):
pip install cupy-cuda12x cuml-cu12Out of memory:
- Reduce dataset size in Configure & Run
- Delete old models in Model Manager
- Uncheck "Save Features" option
- Read docs/UI_GUIDE.md for detailed features
- Check docs/DESIGN.md for architecture
- Experiment with grid search for parameter tuning
- Upload your own OHLCV data
- README.md - Full project overview
- docs/UI_GUIDE.md - Complete UI documentation
- docs/DESIGN.md - Technical architecture
- requirements.txt - Python dependencies
You're ready to go! 🚀
Launch the UI with ./run_ui.sh and start exploring your OHLCV patterns.