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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file psi-score-0.1.0.tar.gz.
File metadata
- Download URL: psi-score-0.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.9.12 Linux/5.18.10-200.fc36.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43fefe5290e10da30fe232fdc94e2ff16a98d94f86369344e14529a24d52aec3
|
|
| MD5 |
ac55d97d993456f13020a09f030dec18
|
|
| BLAKE2b-256 |
0e8f1692738503d78cda9f957cbe51800ba54f783246adf3d4eb90c1a5c5d9aa
|
File details
Details for the file psi_score-0.1.0-py3-none-any.whl.
File metadata
- Download URL: psi_score-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.9.12 Linux/5.18.10-200.fc36.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63d487b278dd3e3e9aa87c0c5e257ea8b43e107f0e5a8d82c99b297dca781fd0
|
|
| MD5 |
33da594d6a398766be540d1a361a8eb2
|
|
| BLAKE2b-256 |
47b596558fd4be5719d1838f0efdd7f4dbc102d3a8c5a3a3391be8615ead9df8
|