Skip to main content

Model Compression and Knowledge Distillation Toolkit - Extension for DeepBridge

Project description

DeepBridge Distillation

Tests codecov PyPI version Python 3.10+ License: MIT

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

License

MIT License - see LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deepbridge_distillation-2.0.0.tar.gz (57.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deepbridge_distillation-2.0.0-py3-none-any.whl (70.3 kB view details)

Uploaded Python 3

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

Hashes for deepbridge_distillation-2.0.0.tar.gz
Algorithm Hash digest
SHA256 69e63da2fb0705336a6606dc8cb2c479afda1ef32b88358b0ae14e243198eb88
MD5 6ebb7ac11b0043add11513791fa23c2f
BLAKE2b-256 00d926b501e4d841edaa13e91721d8378d3e671be65629a7cd041dd045b29d43

See more details on using hashes here.

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

Hashes for deepbridge_distillation-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3996671bed15731884e98b3852197af5820c0429300ac0d4771f2e637d62b9b0
MD5 5d3f0a10abd3310d03e4fcafcdca8c9b
BLAKE2b-256 6ff34b7ff466e36327080f472bab07ae3c459dc423e3580bc8488b190dd3e44d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page