technical narrative tweaks

This commit is contained in:
Andrew Clark 2020-08-17 16:13:14 -04:00
parent 64b69e42a6
commit d635aacf7c
7 changed files with 301 additions and 246 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 85 KiB

View File

@ -1,4 +1,3 @@
import numpy as np
import pandas as pd
from .utils import *
@ -27,7 +26,6 @@ def driving_process(params, step, sL, s):
candidate_subgraph = s['network'].subgraph(subgraph_nodes)
supporters = get_edges_by_type(candidate_subgraph, 'support')
#len_parts = len(participants)
available_supply = s['total_supply']-s['effective_supply']
expected_holdings = .01*available_supply
@ -62,14 +60,6 @@ def driving_process(params, step, sL, s):
funds = s['funds']
scale_factor = funds*sentiment**2/10000
# if scale_factor <1:
# scale_factor = 1
#this shouldn't happen but expon is throwing domain errors
# if sentiment>.4:
# funds_arrival = expon.rvs(loc = 0, scale = scale_factor)
# else:
# funds_arrival = 0
return({'new_participant':new_participant, #True/False
'new_participant_holdings':new_participant_holdings, #funds held by new participant if True

View File

@ -7,8 +7,7 @@ import matplotlib.cm as cmx
import seaborn as sns
# note --> alpha is redundant with params since alpha is in params
# we can simplify by removing alpha explicit dependence and just pull it as params['alpha']
def trigger_threshold(requested, funds, supply, alpha, params):
'''
Function that determines threshold for proposals being accepted.