PYMBBO ⚡
PYMBBO es un framework modular, intuitivo y de alto rendimiento en Python diseñado para facilitar la experimentación, entrenamiento, evaluación y despliegue de redes neuronales, ofreciendo un sistema Plug-and-Play de Arquitecturas y herramientas avanzadas de Benchmarking y Comparación de Modelos.
🔥 Características Principales
- Gestión de Hiperparámetros (
Config/Hyperparameters): Objeto central con acceso tipo atributo/diccionario y guardado/carga en formato JSON. - Ingesta y Preparación de Datos (
load_dataset,Dataset,Batcher): Carga desde CSV, matrices NumPy, tensores y carpetas, con división de conjuntos (split) y flujo de transformaciones (transform). - Construcción y Ensamblado de Redes (
build_model): Soporta modo secuencial (add_layer), resúmenes visuales (summary()), congelamiento de capas (freeze_layers) y fine-tuning. - Sistema Plug-and-Play de Arquitecturas (
pymbbo/architectures/): Agrega nuevas arquitecturas creando una simple subcarpeta. El framework la descubre y registra automáticamente. - Entrenamiento Avanzado (
fit): Motor de entrenamiento con soporte para Callbacks (EarlyStopping,ModelCheckpoint,LRScheduler). - Métricas Especializadas y Benchmarking (
token_scaling_benchmark,compare_models): Pruebas automáticas de velocidad de tokens, rendimiento (tokens/seg), latencia, costo estimado y comparación simultánea lado a lado de modelos. - Persistencia y Exportación (
save,load_model,export): Exportación directa a.mbbo,ONNXyTorchScript.
⚡ Instalación Rápida
pip install pymbbo
O desde el código fuente:
git clone https://github.com/pymbbo/pymbbo.git
cd pymbbo
pip install -e .
💡 Ejemplo Rápido de Uso
import numpy as np
from pymbbo import Config, load_dataset, build_model, EarlyStopping, ModelCheckpoint
# 1. Configurar Hiperparámetros
config = Config(learning_rate=0.001, batch_size=32, epochs=10)
# 2. Cargar y Preparar Datos
X = np.random.randn(500, 10).astype(np.float32)
Y = np.random.randint(0, 2, (500, 1)).astype(np.float32)
dataset = load_dataset((X, Y))
train_ds, val_ds, test_ds = dataset.split(train=0.8, val=0.1, test=0.1)
# 3. Construir el Modelo (Usando arquitectura incorporada 'mlp')
model = build_model("mlp", input_dim=10, hidden_units=[64, 32], output_dim=1)
model.summary()
# 4. Compilar y Entrenar
model.compile(optimizer="adam", loss_function="bce", metrics=["accuracy"])
callbacks = [
EarlyStopping(patience=3),
ModelCheckpoint("best_model.mbbo")
]
model.fit(train_ds, validation_data=val_ds, epochs=10, callbacks=callbacks)
# 5. Inferencia y Evaluación
predicciones = model.predict(test_ds)
reporte = model.evaluate(test_ds)
print("Resultado Evaluación:", reporte)
# 6. Guardar y Exportar
model.save("modelo_final.mbbo")
model.export("modelo.onnx", format="onnx")
📖 Documentación Completa
Para acceder al manual completo de desarrollador, explicación detallada de cada módulo y la guía paso a paso para crear plugins de arquitectura, consulta DOCS.md.
📄 Licencia
Este proyecto está bajo la Licencia MIT. Consulta el archivo LICENSE para más detalles.
Metadata
Release files for pymbbo 0.1.20
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 | |
|---|---|---|---|---|
| pymbbo-0.1.20.tar.gz | 98.0 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pymbbo-0.1.20-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 181.8 kB
Release files / pymbbo-0.1.20.tar.gz
| Download URL | pymbbo-0.1.20.tar.gz |
|---|---|
| Size | 98.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a500b4e940e1498dc952f3dc51b09497f1a3e34ac7e2248e6b60c28e23037b14
|
|
BLAKE2b-256 checksum How to use checksums |
697a1afb0d7f3da571b26e770cceabd53a0cf24ddd6a5cb042c75b57928504b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 25, 2026.
Transparency logRelease files / pymbbo-0.1.20-py3-none-any.whl
| Download URL | pymbbo-0.1.20-py3-none-any.whl |
|---|---|
| Size | 83.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea0fdadcb5f04d48f02ca37652bf41e2e5bd0ea67391ccd78f59e0e88b61883b
|
|
BLAKE2b-256 checksum How to use checksums |
7fb20743ca2a8485dc0077cd46926b95d1b637e10d54f52d1573ed2ae0354870
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 25, 2026.
Transparency logSecurity for pymbbo 0.1.20
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for pymbbo-0.1.20.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 25, 2026.
Transparency logA 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.