Metadata-Version: 2.4
Name: sheshe
Version: 0.1.12
Summary: SheShe: Smart High-dimensional Edge Segmentation & Hyperboundary Explorer
Home-page: https://example.com/sheshe
Author: JC + ChatGPT
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: pandas
Requires-Dist: scikit-learn>=1.1
Requires-Dist: matplotlib
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: seaborn; extra == "dev"
Requires-Dist: hnswlib; extra == "dev"
Requires-Dist: numba; extra == "dev"
Provides-Extra: numba
Requires-Dist: numba; extra == "numba"
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# SheShe
<div align="right"><a href="README_ES.md">ES</a></div>
 
**📚 Full documentation:** https://jcval94.github.io/SheShe/

**Smart High-dimensional Edge Segmentation & Hyperboundary Explorer**

SheShe turns probabilistic models into guided explorers of their decision surfaces, revealing human‑readable regions by following local maxima of class probability or predicted value.

![SheShe classification example](images/sheshe_class_1.png)

## Features
- Supervised clustering for classification and regression
- Rule extraction and subspace exploration
- 2D/3D plotting utilities

## Mathematical Overview
SheShe approximates the optimisation problem <code>max_x f(x)</code> by climbing gradient-ascent paths toward local maxima and delineating neighbourhoods around them. Detailed derivations for each module are provided in the documentation.

## Installation
Requires Python ≥3.9.

### Dependencies

**Main**

- [NumPy](https://numpy.org/) for numerical operations
- [Pandas](https://pandas.pydata.org/) for tabular data
- [scikit-learn](https://scikit-learn.org/) for model training
- [Matplotlib](https://matplotlib.org/) for visualisation
- [hnswlib](https://github.com/nmslib/hnswlib) for fast nearest-neighbour search

**Optional**

- [LightGBM](https://lightgbm.readthedocs.io/) for gradient boosting models
- [SHAP](https://shap.readthedocs.io/) and [Interpret](https://interpret.ml/) for model explanations

### From PyPI

Install from [PyPI](https://pypi.org/project/sheshe/):

```bash
pip install sheshe
```

### From source

```bash
git clone https://github.com/jcval94/SheShe.git
cd SheShe
pip install -e .
```

### Common issues

- **Windows**: Compiling packages such as `hnswlib` or `lightgbm` may require the
  [Build Tools for Visual Studio](https://visualstudio.microsoft.com/visual-cpp-build-tools/).
  Alternatively, use a [conda](https://conda.io/) environment or
  install via [WSL](https://learn.microsoft.com/windows/wsl/install).
- **macOS**: Ensure Xcode command-line tools are installed (`xcode-select --install`).
  Some dependencies (e.g. `lightgbm`) also need OpenMP support: `brew install libomp`.
  If wheels are unavailable, build from source using Homebrew-provided compilers.

## Documentation
See the [documentation](https://jcval94.github.io/SheShe/) for installation, API reference and guides.

## Contributing
Set up a virtual environment and install the development dependencies:

```bash
pip install -r requirements-dev.txt
pip install -e .
```

Run the tests to ensure everything works:

```bash
pytest
```

No linter is currently configured; feel free to run `black .` locally before submitting changes.

## Author
SheShe is authored by José Carlos Del Valle – [LinkedIn](https://www.linkedin.com/in/jose-carlos-del-valle/) | [Portfolio](https://jcval94.github.io/Portfolio/)

## License
MIT
