Installation
Quick Start
The fastest way to get started with xplainable is through PyPI:
That's it! You now have the core xplainable package installed and ready to use for transparent machine learning.
Installation Options
Core Package
The core package includes all essential features for transparent machine learning:
Includes:
- XClassifier and XRegressor models
- Partitioned models (PartitionedClassifier, PartitionedRegressor)
- Bayesian hyperparameter optimization (XParamOptimiser)
- Model explainability
Preprocessing
For data preprocessing pipelines and transformers, install the separate preprocessing package:
Features:
- Preprocessing pipeline (XPipeline)
- Built-in transformers for data transformation
- Pipeline persistence and reusability
Advanced Plotting
For enhanced visualization capabilities:
Additional features:
- Advanced Altair-based visualizations
- Custom plot themes and styling
- Interactive explanation plots
- Enhanced model inspection tools
Cloud Integration
For cloud deployment and collaboration features:
The cloud client is a separate package that provides integration with Xplainable Cloud for model deployment, collaboration, and production management.
Cloud features:
- Model deployment and management
- Team collaboration
- Model versioning
- Production monitoring
- Secure API deployments
Complete Installation
For all features, install all packages:
Environment Setup
Recommended Environment
Python 3.8+ -- Python 3.8 or later is required.
Virtual Environment -- Always use virtual environments to avoid package conflicts.
Setting Up Virtual Environment
Using venv (Recommended)
Using conda
Jupyter Notebook Setup
Installation
If you don't have Jupyter installed:
JupyterLab Setup
For JupyterLab users:
Known Issues & Solutions
Import Errors
If you encounter import errors:
Verification
Test Core Installation
Test Cloud Client
Docker Setup
For containerized environments:
Troubleshooting
Common Issues
ModuleNotFoundError: No module named 'xplainable'
Solution:
- Check that you're in the correct virtual environment
- Reinstall:
pip install xplainable - Verify installation:
pip list | grep xplainable
Cloud client import errors
Solution:
- Install cloud client:
pip install xplainable-client - Check that both packages are in the same environment
- Verify installation:
pip list | grep xplainable
Next Steps
Now that you have xplainable installed, check out our Python API documentation or jump straight into our tutorials for hands-on examples.
Quick Start Example
Cloud Integration Example
Support
Need help with installation?
- Documentation: Check our comprehensive guides
- Community: Join our user community
- Issues: Report bugs on GitHub
- Enterprise: Contact us for enterprise support