Metadata-Version: 2.1
Name: psi-score
Version: 0.1.0
Summary: Metric of user influence in Online Social Networks
Home-page: https://github.com/NouamaneA/psi-score
License: MIT
Author: Nouamane Arhachoui
Author-email: nouamane.arhachoui@lip6.fr
Requires-Python: >=3.9,<3.11
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: numpy (>=1.23.1,<2.0.0)
Requires-Dist: progressbar2 (>=4.0.0,<5.0.0)
Requires-Dist: scipy (>=1.8.1,<2.0.0)
Description-Content-Type: text/markdown

# Psi-score

Metric of user influence in Online Social Networks

## Installation

```bash
$ pip install psi-score
```

## Usage

```python
>>> from psi_score import PsiScore
>>> adjacency = {0: [1, 3], 1: [0, 2], 2: [0, 1, 3], 3: [0]}
>>> lambdas = [0.23, 0.50, 0.86, 0.19]
>>> mus = [0.42, 0.17, 0.10, 0.37]
>>> psiscore = PsiScore()
>>> scores = psiscore.fit_transform(adjacency, lambdas, mus)
>>> scores
array([0.21158803, 0.35253745, 0.28798439, 0.14789014])
>>> np.round(scores, 2)
array([0.21, 0.35, 0.29, 0.15])
```

## License

`psi-score` was created by Nouamane Arhachoui. It is licensed under the terms of the MIT license.

