Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMC-SOG
experiments
hybrid
Commits
1c18ead2
Commit
1c18ead2
authored
Jan 25, 2021
by
Jaime Arias
Browse files
update scripts
parent
6fd36c68
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
scripts/plot-results.ipynb
View file @
1c18ead2
This diff is collapsed.
Click to expand it.
scripts/plot-results.py
View file @
1c18ead2
...
...
@@ -4,7 +4,7 @@
# In[1]:
ZERO
=
1
0e-5
ZERO
=
2
0e-5
TIMEOUT
=
10
*
60
# 10 minutes = 600 seconds
...
...
@@ -118,7 +118,7 @@ def create_figure(df, model):
return
figure
# In[
5
]:
# In[
30
]:
def
get_axis_title
(
experiment
,
show_strategy
=
True
):
...
...
@@ -150,6 +150,7 @@ def get_axis_title(experiment, show_strategy=True):
'otfL'
:
'Lace'
,
'otfP'
:
'Pthreads'
,
'otfC'
:
'Cthreads'
,
'otfPR'
:
'otfPR'
,
'otf'
:
'Hybrid'
}
...
...
@@ -819,35 +820,35 @@ table_explored_states_stats.head()
# # Examples
# In[2
5
]:
# In[2
1
]:
create_figure_explored_states
(
table_explored_states
,
'robot
5
0'
)
create_figure_explored_states
(
table_explored_states
,
'robot
2
0'
)
# In[2
4
]:
# In[2
2
]:
create_figure
(
df
,
"robot
5
0"
)
create_figure
(
df
,
"robot
2
0"
)
# In[23]:
log_figure
=
create_log_figure
(
table_time
,
table_error
,
"robot
5
0"
,
"pmc-sog_otf_couv99-default_
2_16
"
,
"pnml2lts-mc_dfs_1_16"
,
True
,
open_logs_callback
)
log_figure
=
create_log_figure
(
table_time
,
table_error
,
"robot
2
0"
,
"pmc-sog_otf_couv99-default_
4_4
"
,
"pnml2lts-mc_dfs_1_16"
,
True
,
open_logs_callback
)
log_figure
# In[2
6
]:
# In[2
4
]:
table
=
get_table
(
table_time
,
table_error
,
"robot
5
0"
,
"pmc-sog_otf_couv99-default_
2_16
"
,
"pnml2lts-mc_dfs_1_16"
)
table
=
get_table
(
table_time
,
table_error
,
"robot
2
0"
,
"pmc-sog_otf_couv99-default_
4_4
"
,
"pnml2lts-mc_dfs_1_16"
)
table
# # Generate Figures
# In[2
7
]:
# In[2
5
]:
# models
...
...
@@ -857,7 +858,7 @@ models = df.model.unique()
tools
=
df
.
tool
.
unique
()
# In[
]:
# In[
26
]:
# create all the figures of explored states
...
...
@@ -876,7 +877,7 @@ for model in models:
print
(
"Error: {} was not plotted"
.
format
(
model
))
# In[
]:
# In[
31
]:
# create all the figures formula vs time
...
...
scripts/sbatch_generator.py
View file @
1c18ead2
...
...
@@ -384,14 +384,14 @@ if __name__ == '__main__':
# Default paths
paths
=
create_default_paths
()
# Timeout:
1
0 minutes
timeout
=
1
0
# Timeout:
2
0 minutes
timeout
=
2
0
# Number of nodes
nodes
=
[
2
]
nodes
=
[
4
]
# Number of threads
threads
=
[
8
,
16
]
threads
=
[
4
]
# Formulas to be verified
nb_formulas
=
200
...
...
@@ -410,25 +410,25 @@ if __name__ == '__main__':
# }, {
"name"
:
"robot"
,
"instances"
:
[
"robot20"
,
"robot50"
]
#
, "robot2", "robot5", "robot10"]
},
{
"name"
:
"spool"
,
"instances"
:
[
"spool4"
,
"spool5"
]
#, "spool1", "spool2", "spool3"]
"instances"
:
[
"robot20"
]
#"robot20"
, "robot50", "robot2", "robot5", "robot10"]
#
}, {
#
"name": "spool",
#
"instances": ["spool4", "spool5"] #, "spool1", "spool2", "spool3"]
}]
# Tools to be compared
tools
=
[{
"name"
:
"pmc-sog"
,
"parameters"
:
{
"parallelisation"
:
[
'otf'
],
#
, 'otfP',
'otfPR', 'otfC'
],
"parallelisation"
:
[
'otf'
],
# 'otfPR', 'otf
P', 'otf
C'
"strategy"
:
[
'Cou99(poprem)'
,
'Cou99(poprem shy)'
]
#, 'default']
}
#
}, {
#
"name": "pnml2lts-mc",
#
"parameters": {
#
"size": ["90%"],
#
"strategy": ['dfs', 'ndfs']
#
}
#
}, {
#
"name": "pnml2lts-mc",
#
"parameters": {
#
"size": ["90%"],
#
"strategy": ['dfs', 'ndfs']
#
}
}]
generate_multiple_sbatchs
(
tools
,
models
,
formulas
,
nodes
,
threads
,
timeout
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment