Skip to main content

No project description provided

Project description

DeepBridge

Documentation Status CI PyPI version

DeepBridge is a Python library for streamlining machine learning model validation and distillation processes. It provides tools to manage experiments, validate models, and create more efficient versions of complex models.

Installation

You can install DeepBridge using pip:

pip install deepbridge

Or install from source:

git clone https://github.com/DeepBridge-Validation/DeepBridge.git
cd deepbridge
pip install -e .

Quick Start

Model Validation

from deepbridge.model_validation import ModelValidation

# Create experiment
experiment = ModelValidation("my_experiment")

# Add data
experiment.add_data(X_train, y_train, X_test, y_test)

# Add and save model
experiment.add_model(model, "model_v1")
experiment.save_model("model_v1")

Model Distillation

from deepbridge.model_distiller import ModelDistiller

# Create and train distilled model
distiller = ModelDistiller(model_type="gbm")
distiller.fit(X=features, probas=predictions)

# Make predictions
predictions = distiller.predict(X_new)

Using the CLI

# Create experiment
deepbridge validation create my_experiment --path ./experiments

# Train distilled model
deepbridge distill train gbm predictions.csv features.csv -s ./models

Features

  • Model Validation

    • Experiment management
    • Metric tracking
    • Model versioning
    • Surrogate model support
  • Model Distillation

    • Multiple model types (GBM, XGBoost, MLP)
    • Performance metrics
    • Optimization options
    • Easy model persistence
  • Command Line Interface

    • Intuitive commands
    • Rich output formatting
    • Multiple data format support

Requirements

  • Python 3.8+
  • Dependencies:
    numpy>=1.24.0
    pandas>=2.0.0
    scikit-learn>=1.2.0
    xgboost>=1.7.0
    scipy>=1.10.0
    typer[all]>=0.9.0
    rich>=13.0.0
    

Documentation

For detailed documentation, visit our documentation page.

Example Notebooks

Check out our example notebooks for detailed usage scenarios:

  • Basic Model Validation
  • Model Distillation Techniques
  • CLI Usage Examples

Contributing

We welcome contributions! Here's how you can help:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Development Setup

# Clone the repository
git clone https://github.com/DeepBridge-Validation/DeepBridge.git
cd deepbridge

# Create virtual environment
python -m venv venv
source venv/bin/activate  # Linux/Mac
# or
venv\Scripts\activate     # Windows

# Install development dependencies
pip install -r requirements-dev.txt

Running Tests

pytest tests/

License

This project is licensed under the MIT License - see the LICENSE file for details.

Citation

If you use DeepBridge in your research, please cite:

@software{deepbridge2024,
  title = {DeepBridge: A Python Library for Model Validation and Distillation},
  author = {Team DeepBridge},
  year = {2025},
  url = {https://github.com/DeepBridge-Validation/DeepBridge}
}

Acknowledgments

  • Thanks to all contributors
  • Inspired by best practices in model optimization
  • Built with modern Python tools and libraries

Contact

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-0.1.4.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

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

deepbridge-0.1.4-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

Details for the file deepbridge-0.1.4.tar.gz.

File metadata

  • Download URL: deepbridge-0.1.4.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.5 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for deepbridge-0.1.4.tar.gz
Algorithm Hash digest
SHA256 93b298d589da3caa7053b7527f3b5a897c9a00efe8cbf506cb7610beb4016bf4
MD5 15f4b1859fc369b3d4cdc82da63740fc
BLAKE2b-256 fa00af1d57227655376aabfdd58db68a9b989fe7ddf02a8f28b1c8130b2cfe86

See more details on using hashes here.

File details

Details for the file deepbridge-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: deepbridge-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 34.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.5 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for deepbridge-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4dab6b45eb0fe4b84e40c7b0ae61feeee0cc8a5690589aebb31da746b37904bb
MD5 f84cff177303514999b957abb23bfafe
BLAKE2b-256 c6b4a19b3cc89cb7a3d08ac6c976f9682d5105b9da61674b44422581f124e10c

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