Skip to content

Commit

Permalink
Repaired behavior of policy score for each of independent variables p…
Browse files Browse the repository at this point in the history
…resent
  • Loading branch information
yashpatel5400 committed Jul 27, 2015
1 parent 82174af commit e02ca47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion AgentFactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def AgentFactory_createAgent(network, agentID, percentMinority):
currentSES = 0.0

# No discrimination imposed upon those not of minority.
# Similarly, attitude for those of minority is fully accepting
# Attitude for those of minority is fully accepting
# of one another and probabilistic otherwise. Support is also
# fully present for those not of minority status
if not isMinority:
Expand Down
9 changes: 5 additions & 4 deletions NetworkBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,10 +640,11 @@ def NetworkBase_getTotalInfluence(self, billRank):
agents = self.NetworkBase_getAgentArray()
for agent in agents:
totalInfluence += agent.Agent_getBillInfluence(billRank)
totalInfluence -= agent.probConceal/10
totalInfluence -= agent.discrimination/10
totalInfluence -= agent.currentDepression/10
totalInfluence += agent.support/25
if agent.isMinority:
#totalInfluence -= (agent.probConceal)
#totalInfluence -= (agent.discrimination ** 2)/4
totalInfluence -= (agent.currentDepression ** 2)/2
totalInfluence += agent.support ** 1.5
return totalInfluence

#################################################################
Expand Down

0 comments on commit e02ca47

Please sign in to comment.