gradia 1.0.0__py3-none-any.whl → 2.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gradia/__init__.py +38 -1
- gradia/cli/main.py +1 -1
- gradia/core/config.py +71 -13
- gradia/core/migration.py +324 -0
- gradia/events/__init__.py +17 -0
- gradia/events/logger.py +215 -0
- gradia/events/models.py +170 -0
- gradia/events/tracker.py +337 -0
- gradia/trainer/engine.py +175 -3
- gradia/viz/server.py +153 -17
- gradia/viz/static/css/timeline.css +419 -0
- gradia/viz/static/js/timeline.js +471 -0
- gradia/viz/templates/configure.html +1 -1
- gradia/viz/templates/index.html +11 -9
- gradia/viz/templates/timeline.html +195 -0
- gradia-2.0.0.dist-info/METADATA +394 -0
- gradia-2.0.0.dist-info/RECORD +30 -0
- {gradia-1.0.0.dist-info → gradia-2.0.0.dist-info}/WHEEL +1 -1
- gradia-1.0.0.dist-info/METADATA +0 -143
- gradia-1.0.0.dist-info/RECORD +0 -22
- {gradia-1.0.0.dist-info → gradia-2.0.0.dist-info}/entry_points.txt +0 -0
- {gradia-1.0.0.dist-info → gradia-2.0.0.dist-info}/licenses/LICENSE +0 -0
- {gradia-1.0.0.dist-info → gradia-2.0.0.dist-info}/top_level.txt +0 -0
gradia-1.0.0.dist-info/METADATA
DELETED
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: gradia
|
|
3
|
-
Version: 1.0.0
|
|
4
|
-
Summary: Local-first ML training visualization and tracking dashboard.
|
|
5
|
-
Author-email: STiFLeR <stifler@example.com>
|
|
6
|
-
License: MIT License
|
|
7
|
-
|
|
8
|
-
Copyright (c) 2025 STiFLeR
|
|
9
|
-
|
|
10
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
-
in the Software without restriction, including without limitation the rights
|
|
13
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
-
furnished to do so, subject to the following conditions:
|
|
16
|
-
|
|
17
|
-
The above copyright notice and this permission notice shall be included in all
|
|
18
|
-
copies or substantial portions of the Software.
|
|
19
|
-
|
|
20
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
-
SOFTWARE.
|
|
27
|
-
|
|
28
|
-
Project-URL: Homepage, https://github.com/STiFLeR7/gradia
|
|
29
|
-
Project-URL: Bug Tracker, https://github.com/STiFLeR7/gradia/issues
|
|
30
|
-
Keywords: machine-learning,dashboard,visualization,tracking,mlops
|
|
31
|
-
Classifier: Programming Language :: Python :: 3
|
|
32
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
33
|
-
Classifier: Operating System :: OS Independent
|
|
34
|
-
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
35
|
-
Classifier: Topic :: System :: Monitoring
|
|
36
|
-
Requires-Python: >=3.9
|
|
37
|
-
Description-Content-Type: text/markdown
|
|
38
|
-
License-File: LICENSE
|
|
39
|
-
Requires-Dist: scikit-learn
|
|
40
|
-
Requires-Dist: pandas
|
|
41
|
-
Requires-Dist: numpy
|
|
42
|
-
Requires-Dist: fastapi
|
|
43
|
-
Requires-Dist: uvicorn
|
|
44
|
-
Requires-Dist: typer
|
|
45
|
-
Requires-Dist: jinja2
|
|
46
|
-
Requires-Dist: watchdog
|
|
47
|
-
Requires-Dist: rich
|
|
48
|
-
Requires-Dist: psutil
|
|
49
|
-
Requires-Dist: tqdm
|
|
50
|
-
Dynamic: license-file
|
|
51
|
-
|
|
52
|
-
<div align="center">
|
|
53
|
-
|
|
54
|
-
# G R A D I A
|
|
55
|
-
|
|
56
|
-
**Next-Generation Local-First MLOps Platform**
|
|
57
|
-
|
|
58
|
-
[](https://pypi.org/project/gradia/)
|
|
59
|
-
[](https://python.org)
|
|
60
|
-
[](LICENSE)
|
|
61
|
-
[](https://github.com/STiFLeR7/gradia/actions)
|
|
62
|
-
|
|
63
|
-
<p align="center">
|
|
64
|
-
<img src="https://github.com/STiFLeR7/gradia/blob/master/docs/dashboard.png" alt="Gradia Dashboard" width="100%" />
|
|
65
|
-
</p>
|
|
66
|
-
|
|
67
|
-
</div>
|
|
68
|
-
|
|
69
|
-
---
|
|
70
|
-
|
|
71
|
-
## 🚀 Overview
|
|
72
|
-
|
|
73
|
-
**Gradia** is a high-performance, asynchronous monitoring solution designed for local machine learning workflows. Unlike cloud-native behemoths, Gradia focuses on **zero-latency**, **privacy-first** tracking that runs directly alongside your training loop.
|
|
74
|
-
|
|
75
|
-
Built on **FastAPI**, **WebSockets** (simulated via high-frequency polling), and **Reactive UI**, Gradia provides granular visibility into your model's training dynamics, system resource consumption, and feature importance without the overhead of external servers.
|
|
76
|
-
|
|
77
|
-
## ⚡ Key Capabilities
|
|
78
|
-
|
|
79
|
-
| Feature | Description |
|
|
80
|
-
| :--- | :--- |
|
|
81
|
-
| **Real-Time Telemetry** | Nanosecond-precision tracking of Loss, Accuracy, and custom metrics via async event dispatching. |
|
|
82
|
-
| **Intelligent Auto-Discovery** | Heuristic analysis of tabular datasets to automatically infer task types (Regression vs Classification) and suggest optimal architectures (CNNs, RFCs). |
|
|
83
|
-
| **System Profiling** | Integrated `psutil` hooks for monitoring CPU/GPU* and RAM saturation during training epochs. |
|
|
84
|
-
| **Artifact Management** | Automated checkpointing (`best-ckpt`) and structured logging (`events.jsonl`) with thread-safe IO. |
|
|
85
|
-
| **Comprehensive Reporting** | One-click generation of audit-ready PDF/JSON reports containing full training history and confusion matrices. |
|
|
86
|
-
| **Interactive Evaluation** | Post-training validation suite featuring dynamic Heatmap visualization for Confusion Matrices. |
|
|
87
|
-
|
|
88
|
-
## 🛠️ Architecture
|
|
89
|
-
|
|
90
|
-
Gradia employs a **Producer-Consumer** architecture:
|
|
91
|
-
|
|
92
|
-
1. **Trainer Thread (Producer)**: Executes the Scikit-Learn training loop, emitting atomic events to a thread-locked `EventLogger`.
|
|
93
|
-
2. **System Thread**: Asynchronously samples hardware metrics.
|
|
94
|
-
3. **Visualization Server (Consumer)**: A lightweight FastAPI instance that aggregates logs and serves a reactive Single Page Application (SPA).
|
|
95
|
-
|
|
96
|
-
This decoupling ensures that monitoring never bottlenecks your training throughput.
|
|
97
|
-
|
|
98
|
-
## 📦 Installation
|
|
99
|
-
|
|
100
|
-
```bash
|
|
101
|
-
pip install gradia --upgrade
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
## 💻 Usage
|
|
105
|
-
|
|
106
|
-
### Quick Start
|
|
107
|
-
Initialize the environment and start the observer in one command. Gradia will auto-detect any CSV files in the directory.
|
|
108
|
-
|
|
109
|
-
```bash
|
|
110
|
-
gradia run .
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
### Advanced CLI
|
|
114
|
-
Override default heuristics and bind to specific interfaces.
|
|
115
|
-
|
|
116
|
-
```bash
|
|
117
|
-
gradia run . \
|
|
118
|
-
--target "churn_label" \
|
|
119
|
-
--port 8080 \
|
|
120
|
-
--workers 4
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
## 📊 Dashboard
|
|
124
|
-
|
|
125
|
-
Access the dashboard at `http://localhost:8000`.
|
|
126
|
-
|
|
127
|
-
- **Configure**: Select your model (Random Forest, MLP, etc.) and hyperparameters.
|
|
128
|
-
- **Observe**: Watch metrics stream in real-time.
|
|
129
|
-
- **Analyze**: Use the built-in Feature Importance charts to debug model bias.
|
|
130
|
-
|
|
131
|
-
## 🤝 Contributing
|
|
132
|
-
|
|
133
|
-
We welcome contributions! Please see `CONTRIBUTING.md` for details on submitting logical PRs.
|
|
134
|
-
|
|
135
|
-
## 📄 License
|
|
136
|
-
|
|
137
|
-
Distributed under the MIT License. See `LICENSE` for more information.
|
|
138
|
-
|
|
139
|
-
---
|
|
140
|
-
|
|
141
|
-
<div align="center">
|
|
142
|
-
<sub>Built with ❤️ by STiFLeR for the ML Community.</sub>
|
|
143
|
-
</div>
|
gradia-1.0.0.dist-info/RECORD
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
gradia/__init__.py,sha256=ZhzQKWZ8RFrTIkj7z87B144DI95e8LMfA5w8NDWQDtg,23
|
|
2
|
-
gradia/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
gradia/cli/main.py,sha256=5BSkhMXnsVYS_Vk9sHFVIIdTI-XNyz9DadZ1RmnB7-o,3164
|
|
4
|
-
gradia/core/config.py,sha256=FfvMwaM48AJO2Cz7mwS01Zm-Bv6lt3-tWCyNWKwFo9w,1857
|
|
5
|
-
gradia/core/inspector.py,sha256=43thaKr7cIdzL5uNgYwdwa6APJiXmsLTjqMOMoJCdzQ,1287
|
|
6
|
-
gradia/core/scenario.py,sha256=iu5e6jbRXvRZa2yp_A2-8xZmxrwDpM0BsaJlHWEKoJA,4699
|
|
7
|
-
gradia/models/base.py,sha256=rLR1Ag4TMBrHsYb_PQM3zIWDnPpNDQ51uId7A8jF-QE,1133
|
|
8
|
-
gradia/models/sklearn_wrappers.py,sha256=8AQdYjh3JzfKbwMpPg5Jidi65uV36MzBGVjN4hb2xrk,4812
|
|
9
|
-
gradia/trainer/callbacks.py,sha256=WbRI_ycXTqGRge9Z7uVBEsed711I-03pqUhKPZHZ3Sg,1616
|
|
10
|
-
gradia/trainer/engine.py,sha256=I5zAR590QOuWDUztxrAOcZZAv0dmBMDZJAkNZN0BMTw,8765
|
|
11
|
-
gradia/viz/server.py,sha256=y0hDgbzq9ltHKAodoPP8p-4-BSdYHGFwZv4FDS61KmU,7698
|
|
12
|
-
gradia/viz/assets/logo.png,sha256=RtL3cAfyxBpW0KP093DsIxBN0HR5GU4yqUBUmOnCiBs,2586995
|
|
13
|
-
gradia/viz/static/css/style.css,sha256=2wxnTjHhByowIYZC8PuGx0ST2HITaC2iUe5BJfC4hJ0,5936
|
|
14
|
-
gradia/viz/static/js/app.js,sha256=40v0PLy9dAo2EJoIInkl8GEX_1XPZANR-sQgg2kbFYo,11563
|
|
15
|
-
gradia/viz/templates/configure.html,sha256=H0Bxa8TGyd6FUK15XwzeydQmjRshkmjTODJM_sV01i0,15926
|
|
16
|
-
gradia/viz/templates/index.html,sha256=5L3YGuVddlPpvnRPlDslbXsgLqIxsa1bcSHZoUbKcN8,8536
|
|
17
|
-
gradia-1.0.0.dist-info/licenses/LICENSE,sha256=dWrK9IOpDyV8CQfYXziujM1lyQLdYEMJUlbW0dJb65Y,1085
|
|
18
|
-
gradia-1.0.0.dist-info/METADATA,sha256=q-q0-7NxT_crSMsvLqI6wi7ZgNTiulOwDX-DEIZoyWQ,6067
|
|
19
|
-
gradia-1.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
20
|
-
gradia-1.0.0.dist-info/entry_points.txt,sha256=8H8vZjYVuQ7_Txjo9GROW2NqX7HtRP9UbRkrE3YX474,47
|
|
21
|
-
gradia-1.0.0.dist-info/top_level.txt,sha256=SMGgb9bTxc8fH4HdGl8gvs_kVGFpebYFA8tCNfg52GA,7
|
|
22
|
-
gradia-1.0.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|