Skip to content

Commit

Permalink
vector similarity with 5 element for "the big five"
Browse files Browse the repository at this point in the history
  • Loading branch information
letiziam committed Aug 11, 2021
1 parent ab07cba commit 5392c5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ndlib/models/opinions/ARWHKModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def iteration(self, node_status=True):
i = 0
if len(self.params['nodes']['vector'][node]) == 0:
#self.params['nodes']['vector'][node] = []
while i < 6:
while i < 5:
self.params['nodes']['vector'][node].append(np.random.randint(2))
i += 1
if self.params['nodes']['stubborn'][node] == 1:
Expand Down
2 changes: 1 addition & 1 deletion ndlib/models/opinions/WHKModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def iteration(self, node_status=True):
i = 0
if len(self.params['nodes']['vector'][node]) == 0:
#self.params['nodes']['vector'][node] = []
while i < 6:
while i < 5:
self.params['nodes']['vector'][node].append(np.random.randint(2))
i += 1
if self.params['nodes']['stubborn'][node] == 1:
Expand Down

0 comments on commit 5392c5d

Please sign in to comment.