Getting Started
Get up and running with BlackBox Precision Core SDK in just a few minutes. This guide will walk you through installation and your first explainable AI implementation.
Prerequisites
- Python 3.8 or higher installed on your system
- Basic understanding of machine learning models
- A trained model you want to explain (TensorFlow, PyTorch, or Scikit-learn)
Quick Start Guide
Step 1: Install via pip
Python
pip install blackbox-core-sdkStep 2: Import the SDK
Python
from blackbox_core import Explainer
import numpy as npStep 3: Initialize Explainer
Python
# Initialize with your model
explainer = Explainer(
model=your_model,
method='shap' # or 'lime'
)Step 4: Generate Explanations
Python
# Get explanation for a prediction
explanation = explainer.explain(
data=sample_input,
feature_names=['feature1', 'feature2', 'feature3']
)
# Visualize the results
explanation.plot()What's Next?
Now that you have the SDK installed and working, explore these resources to dive deeper: