DeepBridge Distillation
Model Compression and Knowledge Distillation Toolkit - Extension for DeepBridge
Part of the DeepBridge v2.0 Ecosystem
This package was extracted from DeepBridge v1.x to provide focused model compression capabilities. See Migration Guide if migrating from v1.x.
Installation
pip install deepbridge-distillation
This will automatically install deepbridge>=2.0.0 as a dependency.
Quick Start
from deepbridge import DBDataset
from deepbridge_distillation import AutoDistiller
# Create dataset with teacher model predictions
dataset = DBDataset(
data=df,
target_column='target',
features=features,
prob_cols=['prob_0', 'prob_1']
)
# Run automated distillation
distiller = AutoDistiller(
dataset=dataset,
output_dir='results',
n_trials=10
)
results = distiller.run(use_probabilities=True)
Features
- Automated Distillation: AutoDistiller with hyperparameter optimization
- Knowledge Distillation: Transfer knowledge from teacher to student models
- Surrogate Models: Create efficient surrogate models
- HPM Knowledge Distillation: Hierarchical Prototype-based Method
- Multi-framework Support: Works with scikit-learn, XGBoost, PyTorch
Documentation
Full documentation: https://deepbridge.readthedocs.io/en/latest/distillation/
Related Projects
- deepbridge - Model Validation Toolkit (core)
- deepbridge-synthetic - Synthetic Data Generation
License
MIT License - see LICENSE
Metadata
Release files for deepbridge-distillation 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| deepbridge_distillation-2.0.0.tar.gz | 57.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deepbridge_distillation-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 127.5 kB
Release files / deepbridge_distillation-2.0.0.tar.gz
| Download URL | deepbridge_distillation-2.0.0.tar.gz |
|---|---|
| Size | 57.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69e63da2fb0705336a6606dc8cb2c479afda1ef32b88358b0ae14e243198eb88
|
|
BLAKE2b-256 checksum How to use checksums |
00d926b501e4d841edaa13e91721d8378d3e671be65629a7cd041dd045b29d43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.10 Linux/6.6.87.1-microsoft-standard-WSL2
|
Release files / deepbridge_distillation-2.0.0-py3-none-any.whl
| Download URL | deepbridge_distillation-2.0.0-py3-none-any.whl |
|---|---|
| Size | 70.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3996671bed15731884e98b3852197af5820c0429300ac0d4771f2e637d62b9b0
|
|
BLAKE2b-256 checksum How to use checksums |
6ff34b7ff466e36327080f472bab07ae3c459dc423e3580bc8488b190dd3e44d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.10 Linux/6.6.87.1-microsoft-standard-WSL2
|