Model Compression and Knowledge Distillation Toolkit - Extension for DeepBridge
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deepbridge_distillation-2.0.0.tar.gz.
File metadata
- Download URL: deepbridge_distillation-2.0.0.tar.gz
- Upload date:
- Size: 57.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.10 Linux/6.6.87.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69e63da2fb0705336a6606dc8cb2c479afda1ef32b88358b0ae14e243198eb88
|
|
| MD5 |
6ebb7ac11b0043add11513791fa23c2f
|
|
| BLAKE2b-256 |
00d926b501e4d841edaa13e91721d8378d3e671be65629a7cd041dd045b29d43
|
File details
Details for the file deepbridge_distillation-2.0.0-py3-none-any.whl.
File metadata
- Download URL: deepbridge_distillation-2.0.0-py3-none-any.whl
- Upload date:
- Size: 70.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.10 Linux/6.6.87.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3996671bed15731884e98b3852197af5820c0429300ac0d4771f2e637d62b9b0
|
|
| MD5 |
5d3f0a10abd3310d03e4fcafcdca8c9b
|
|
| BLAKE2b-256 |
6ff34b7ff466e36327080f472bab07ae3c459dc423e3580bc8488b190dd3e44d
|