Installation
Recommended installation
Section titled “Recommended installation”For daily use:
pip install riskbandsIf you also want the visual extras used in notebooks and Plotly demos:
pip install "riskbands[viz]"To use the optional PySpark fit/transform paths:
pip install "riskbands[spark]"The base package does not install PySpark. The spark extra uses
pyspark>=3.5,<4.
Development environment
Section titled “Development environment”To work on the local repository, run tests, and execute notebooks:
git clone https://github.com/joaaomaia/RiskBands.gitcd RiskBandspip install -e .[dev]The dev extra adds useful tools for:
- tests with
pytest - notebooks with
ipykernel .xlsxexport- Plotly visualizations
- release build and validation
Main library dependencies
Section titled “Main library dependencies”The main installation covers the project core:
pandasnumpyscikit-learnoptbinningoptunacategory_encoders
Practical notes
Section titled “Practical notes”.xlsxexport requires a compatible engine such asopenpyxl.- The numeric supervised flow reuses
optbinning. - Optuna usage is optional.
Local documentation
Section titled “Local documentation”The documentation site lives in docs-site/ and uses Astro + Starlight.
To run it locally:
cd docs-sitenpm cinpm run devTo generate a production build:
cd docs-sitenpm cinpm run buildAfter installation
Section titled “After installation”The best next step is usually: