Metric of user influence in Online Social Networks
Project description
Psi-score
Metric of user influence in Online Social Networks
Installation
$ pip install psi-score
Usage
>>> 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
psi-score-0.1.0.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for psi_score-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63d487b278dd3e3e9aa87c0c5e257ea8b43e107f0e5a8d82c99b297dca781fd0 |
|
MD5 | 33da594d6a398766be540d1a361a8eb2 |
|
BLAKE2b-256 | 47b596558fd4be5719d1838f0efdd7f4dbc102d3a8c5a3a3391be8615ead9df8 |