mirror of
https://github.com/gsi-upm/soil
synced 2024-11-22 11:12:29 +00:00
Changed models
This commit is contained in:
parent
2fc7a91ef3
commit
391ce5e9e0
@ -1,2 +1 @@
|
|||||||
from .BigMarketModel import BigMarketModel
|
from .BigMarketModel import BigMarketModel
|
||||||
from .SISaModel import SISaModel
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import random
|
import random
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from ..BaseBehaviour import *
|
from models.BaseBehaviour import *
|
||||||
|
|
||||||
|
|
||||||
class SISaModel(BaseBehaviour):
|
class SISaModel(BaseBehaviour):
|
1
models/SISaModel/__init__.py
Normal file
1
models/SISaModel/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
from .SISaModel import SISaModel
|
@ -5,4 +5,4 @@ from .BigMarketModel import *
|
|||||||
from .IndependentCascadeModel import *
|
from .IndependentCascadeModel import *
|
||||||
from .ModelM2 import *
|
from .ModelM2 import *
|
||||||
from .SentimentCorrelationModel import *
|
from .SentimentCorrelationModel import *
|
||||||
|
from .SISaModel import *
|
||||||
|
3
soil.py
3
soil.py
@ -27,8 +27,7 @@ if settings.network_type == 2:
|
|||||||
##############
|
##############
|
||||||
|
|
||||||
sim = NetworkSimulation(topology=G, states=init_states, agent_type=ControlModelM2,
|
sim = NetworkSimulation(topology=G, states=init_states, agent_type=ControlModelM2,
|
||||||
max_time=settings.max_time, num_trials=settings.num_trials, logging_interval=1.0,
|
max_time=settings.max_time, num_trials=settings.num_trials, logging_interval=1.0)
|
||||||
environment_params=settings)
|
|
||||||
|
|
||||||
sim.run_simulation()
|
sim.run_simulation()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user