1
0
mirror of https://github.com/gsi-upm/soil synced 2024-09-21 07:41:43 +00:00
soil/settings.py

53 lines
1.2 KiB
Python
Raw Normal View History

2015-12-04 10:41:42 +00:00
# settings.py
def init():
global number_of_nodes
global max_time
global num_trials
global bite_prob
global network_type
global heal_prob
global innovation_prob
global imitation_prob
global timeout
global outside_effects_prob
global anger_prob
global joy_prob
global sadness_prob
global disgust_prob
2015-12-17 11:56:39 +00:00
global tweet_probability_users
global tweet_relevant_probability
global tweet_probability_about
global sentiment_about
global tweet_probability_enterprises
2015-12-04 10:41:42 +00:00
network_type=1
number_of_nodes=50
2016-01-11 11:21:04 +00:00
max_time=10000
2015-12-04 10:41:42 +00:00
num_trials=1
timeout=10
#Zombie model
bite_prob=0.01 # 0-1
heal_prob=0.01 # 0-1
#Bass model
innovation_prob=0.01
imitation_prob=0.01
2015-12-17 11:56:39 +00:00
#Sentiment Correlation model
2015-12-04 10:41:42 +00:00
outside_effects_prob = 0.2
anger_prob = 0.08
joy_prob = 0.05
sadness_prob = 0.02
disgust_prob = 0.02
2015-12-17 11:56:39 +00:00
#Big Market model
##Users
tweet_probability_users = 0.44
tweet_relevant_probability = 0.25
tweet_probability_about = [0.25, 0.25]
2015-12-18 12:03:58 +00:00
sentiment_about = [0, 0] #Valores por defecto
2015-12-17 11:56:39 +00:00
##Enterprises
tweet_probability_enterprises = [0.3, 0.3]
2015-12-17 11:56:39 +00:00