Metadata-Version: 2.4
Name: easysteer
Version: 0.0.1.dev1
Summary: EasySteer preview for streaming extraction of steering directions
Author: ZJU-REAL
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/ZJU-REAL/EasySteer
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Dynamic: license-file

# EasySteer

This initial PyPI development release includes the NumPy accumulators from [EasySteer](https://github.com/ZJU-REAL/EasySteer). Compute a steering direction by streaming positive and negative activation samples for a given layer.

```python
from easysteer.extraction.accumulators import DiffMeanAccumulator

acc = DiffMeanAccumulator()
acc.update(0, [[3.0, 1.0]], positive=True)
acc.update(0, [[1.0, 1.0]], positive=False)
print(acc.direction(0))  # [1. 0.]
```

For the full framework and installation instructions, see the [project repository](https://github.com/ZJU-REAL/EasySteer).
