Some of the cleaned code from the internships in Labs
-
Eccentricity fit.py - The data provided in pandas.Dataframe was visualized and then logistic and polynomial regression was fitted to the mean eccentricity values.
-
Majority-Minority Model.py - Create a Watts-Strogatz small-world graph using NetworkX and then track the changes in the network and check the frequency and speed with which the network reaches a desicion or a stalemate with different initialization parameters:
- Number of nodes
- Number of connections between nodes
- Proportion of nodes with the same initial values
- Probability of rewiring
- Probability of a change in the value of a node
- Vote update methods - synchronous and asynchronous (whether all nodes updates at the same time or sequentially)