NexGML (Next Generation Machine Learning)
NexGML (Next Generation Machine Learning) is a custom Machine Learning utility package built for educational and research purposes, emphasizing code transparency and high performance with efficient python implementation.
Key Features & Technology Stack
- Modular Helpers: Separates complex logic into focused helper modules (
ForLinear,ForTree,Indexing,Metrics,Guardians) for easy customization. - Sparse Data Ready: Full support for
scipy.sparsematrices (CSR/CSC) for memory efficiency.
Installation
pip install nexgml
1. Classifiers (The Models)
The primary model is the Gradient Supported Intense Classifier (GSIC).
from nexgml.gradient_supported import IntenseClassifier
import numpy as np
# Load data X, y...
model = IntenseClassifier(
optimizer='adamw',
lr_scheduler='plateau',
batch_size=32,
penalty='elasticnet'
)
model.fit(X_train, y_train)
print(f"Final Training Loss: {model.loss_history[-1]:.6f}")
2. Regressors (The Models)
The primary model is the Gradient Supported Intense Regressor (GSIR).
from nexgml.gradient_supported import IntenseRegressor
import numpy as np
# Load data X, y...
model = IntenseClassifier(
optimizer='adamw',
lr_scheduler='plateau',
batch_size=32,
penalty='elasticnet'
)
model.fit(X_train, y_train)
print(f"Final Training Loss: {model.loss_history[-1]:.6f}")
3. Helper Modules (Performance Backbone)
These modules contain the high-speed math used internally.
| Module | Purpose | Example Usage |
|---|---|---|
nexgml.amo.forlinear |
Linear Criteria. Activation/Loss functions (Softmax, CCE, RMSE). | forlinear.softmax(logits) |
nexgml.amo.fortree |
Tree Criteria. Impurity measures (Gini, Entropy, Friedman MSE). | fortree.gini_impurity(labels) |
nexgml.indexing |
Data Utilities. One-hot encoding, smart feature slicing (standard_indexing). |
indexing.standard_indexing(n_features, 'sqrt') |
nexgml.metrics |
Model Metrics. Regressor and classifier models metrics computation (R^2, F1, Accuracy Score) | accuracy_score(y_true, pred) |
nexgml.guardians |
Numerical stability. Value clipping, invalid value detecting (safe_array, hasinf, hasnan) | safe_array(array) |
📝 Documentation & Exploration
This repository is dedicated to experimentation, learning, and personal research, primarily in the following fields:
- 🤖 Artificial Intelligence and Machine Learning
- 💻 Python development and performance optimization
- 📖 Technical documentation and concept notes
- 🥼 Designing and developing concepts, theories and hypotheses. Before finally forming its implementation
⚠️ This project is intended for exploration and learning purposes only.
If you find this repo helpful or interesting, feel free to fork, star, or open a pull request.
This is a learning space—no pressure, just passion! 😄
Metadata
Release files for nexgml 1.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nexgml-1.5.3.tar.gz | 59.1 kB | Without provenance | Details for nexgml-1.5.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nexgml-1.5.3-py3-none-any.whl | Python 3 | none | any | Details for nexgml-1.5.3-py3-none-any.whl |
Total release size: 157.0 kB
Release files / nexgml-1.5.3.tar.gz
| Download URL | nexgml-1.5.3.tar.gz |
|---|---|
| Size | 59.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb86f5ff3a65ac5296795e2c478a3440fdf8cf1037dc94e35612719f30a7a0fb
|
|
BLAKE2b-256 checksum How to use checksums |
96b0541a58dfa3799d9b1bc17cc619486c349f4a3f7394cd511a90c4c92cedff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.9
|
Release files / nexgml-1.5.3-py3-none-any.whl
| Download URL | nexgml-1.5.3-py3-none-any.whl |
|---|---|
| Size | 97.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
158894958f1f0cda4c487d5522b9431c50a3368f68de53460e0d86a5ddc607b1
|
|
BLAKE2b-256 checksum How to use checksums |
7c360d4eeae1e6e48e965cdf066121982623390d20ba92273c27f90bb745225c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.9
|
Security for nexgml 1.5.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.