Merge branch 'master' of https://github.com/BlockScience/Aragon_Conviction_Voting
|
|
@ -4,7 +4,7 @@ from datetime import timedelta
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from typing import Dict, List
|
from typing import Dict, List
|
||||||
|
|
||||||
from cadCAD.configuration import append_configs
|
from cadCAD.configuration import Experiment
|
||||||
from cadCAD.configuration.utils import bound_norm_random, ep_time_step, config_sim, access_block
|
from cadCAD.configuration.utils import bound_norm_random, ep_time_step, config_sim, access_block
|
||||||
|
|
||||||
from .genesis_states import genesis_states
|
from .genesis_states import genesis_states
|
||||||
|
|
@ -21,7 +21,9 @@ seeds = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
append_configs(
|
exp = Experiment()
|
||||||
|
|
||||||
|
exp.append_configs(
|
||||||
sim_configs=sim_config,
|
sim_configs=sim_config,
|
||||||
initial_state=genesis_states,
|
initial_state=genesis_states,
|
||||||
seeds=seeds,
|
seeds=seeds,
|
||||||
|
|
@ -30,6 +32,7 @@ append_configs(
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def get_configs():
|
def get_configs():
|
||||||
'''
|
'''
|
||||||
Function to extract the configuration information for display in a notebook.
|
Function to extract the configuration information for display in a notebook.
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ from datetime import timedelta
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from typing import Dict, List
|
from typing import Dict, List
|
||||||
|
|
||||||
from cadCAD.configuration import append_configs
|
from cadCAD.configuration import Experiment
|
||||||
from cadCAD.configuration.utils import bound_norm_random, ep_time_step, config_sim, access_block
|
from cadCAD.configuration.utils import bound_norm_random, ep_time_step, config_sim, access_block
|
||||||
|
|
||||||
from .genesis_states import genesis_states
|
from .genesis_states import genesis_states
|
||||||
|
|
@ -21,7 +21,9 @@ seeds = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
append_configs(
|
exp = Experiment()
|
||||||
|
|
||||||
|
exp.append_configs(
|
||||||
sim_configs=sim_config,
|
sim_configs=sim_config,
|
||||||
initial_state=genesis_states,
|
initial_state=genesis_states,
|
||||||
seeds=seeds,
|
seeds=seeds,
|
||||||
|
|
@ -30,6 +32,7 @@ append_configs(
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def get_configs():
|
def get_configs():
|
||||||
'''
|
'''
|
||||||
Function to extract the configuration information for display in a notebook.
|
Function to extract the configuration information for display in a notebook.
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 72 KiB |
|
|
@ -4,7 +4,7 @@ from datetime import timedelta
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from typing import Dict, List
|
from typing import Dict, List
|
||||||
|
|
||||||
from cadCAD.configuration import append_configs
|
from cadCAD.configuration import Experiment
|
||||||
from cadCAD.configuration.utils import bound_norm_random, ep_time_step, config_sim, access_block
|
from cadCAD.configuration.utils import bound_norm_random, ep_time_step, config_sim, access_block
|
||||||
|
|
||||||
from .genesis_states import genesis_states
|
from .genesis_states import genesis_states
|
||||||
|
|
@ -13,7 +13,7 @@ from .partial_state_update_block import partial_state_update_blocks
|
||||||
|
|
||||||
sim_config = config_sim({
|
sim_config = config_sim({
|
||||||
'N': 1,
|
'N': 1,
|
||||||
'T': range(60), #day
|
'T': range(100), #day
|
||||||
})
|
})
|
||||||
|
|
||||||
seeds = {
|
seeds = {
|
||||||
|
|
@ -21,7 +21,9 @@ seeds = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
append_configs(
|
exp = Experiment()
|
||||||
|
|
||||||
|
exp.append_configs(
|
||||||
sim_configs=sim_config,
|
sim_configs=sim_config,
|
||||||
initial_state=genesis_states,
|
initial_state=genesis_states,
|
||||||
seeds=seeds,
|
seeds=seeds,
|
||||||
|
|
@ -30,6 +32,7 @@ append_configs(
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def get_configs():
|
def get_configs():
|
||||||
'''
|
'''
|
||||||
Function to extract the configuration information for display in a notebook.
|
Function to extract the configuration information for display in a notebook.
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 69 KiB |
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 69 KiB |
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 71 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 74 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 74 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 73 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 74 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 69 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 79 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 80 KiB |
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 75 KiB |
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 73 KiB |
|
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 73 KiB |
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 69 KiB |
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 79 KiB |
|
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 79 KiB |
|
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 75 KiB |
|
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 75 KiB |
|
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 71 KiB |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 71 KiB |
|
Before Width: | Height: | Size: 9.5 KiB After Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 71 KiB |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 71 KiB |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 69 KiB |
|
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 67 KiB |