You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v1.0.0: Added scipy requirement, tested on previous Python versions down to 3.10, added the possibility to customize classes and pass them inside the InfluenceMaximization object
Copy file name to clipboardexpand all lines: README.md
+4-3
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ NetMax was developed with Python 3.12 and requires the installation of the follo
32
32
33
33
-**networkx** (version 3.3)
34
34
-**numpy**
35
+
-**scipy**
35
36
-**tqdm**
36
37
-**heapdict**
37
38
@@ -55,9 +56,9 @@ This framework wants to be a useful tool for all those people who study the prob
55
56
-`r`: number of simulations to execute (default is 100)
56
57
-`verbose`: if `True` sets the logging level to `INFO`, otherwise displays only the minimal information
57
58
58
-
**Important**: `alg`, `diff_model`, `inf_prob` and `endorsement_policy`are `str`parameters, in order to prevent the user from directly importing and instantiating all the specific classes, which could have not been user-friendly.
59
-
If the user, after reading the documentation, wants to customize some specific parameters, he can still change the corresponding attribute after the instantiation of the `InfluenceMaximization` object.
60
-
To view all the keywords for these parameters, see the corresponding section.
59
+
**Important**: `alg`, `diff_model`, `inf_prob` and `endorsement_policy`can be either `str`or class parameters:
60
+
-If they are `str` parameters, they represent the `name` attribute of the corresponding class already present in the framework. This was done in order to prevent the user from directly importing and instantiating all the specific classes, which could have not been user-friendly. To view all the keywords for these parameters, see the corresponding section
61
+
- Otherwise, they must extend the corresponding superclass depending on the parameters (`Algorithm` for `alg`, `DiffusionModel` for `diff_model`, `InfluenceProbability` for `inf_prob`, `EndorsementPolicy` for `endorsement_policy`). This way, the user can define his own custom classes
61
62
62
63
After creating the `InfluenceMaximization` object, the user may call its `run()` method, which returns:
0 commit comments