Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tff2020
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
skmad-suite
tff2020
Commits
98e2ed1d
Commit
98e2ed1d
authored
4 years ago
by
valentin.emiya
Browse files
Options
Downloads
Patches
Plain Diff
update with slurm
parent
f3d8416b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
python/tffpy/scripts/script_exp_solve_tff.py
+8
-9
8 additions, 9 deletions
python/tffpy/scripts/script_exp_solve_tff.py
python/tffpy/scripts/script_exp_variance.py
+1
-1
1 addition, 1 deletion
python/tffpy/scripts/script_exp_variance.py
with
9 additions
and
10 deletions
python/tffpy/scripts/script_exp_solve_tff.py
+
8
−
9
View file @
98e2ed1d
...
@@ -52,12 +52,11 @@ Run this script to handle the main experiment :class:`SolveTffExperiment`.
...
@@ -52,12 +52,11 @@ Run this script to handle the main experiment :class:`SolveTffExperiment`.
.. moduleauthor:: Valentin Emiya
.. moduleauthor:: Valentin Emiya
"""
"""
from
yafe.utils
import
generate_oar_script
import
matplotlib.pyplot
as
plt
import
matplotlib.pyplot
as
plt
from
tffpy.experiments.exp_solve_tff
import
\
from
tffpy.experiments.exp_solve_tff
import
\
SolveTffExperiment
,
create_and_run_light_experiment
SolveTffExperiment
,
create_and_run_light_experiment
from
tffpy.experiments.yafe_slurm
import
generate_slurm_script
try
:
try
:
...
@@ -77,7 +76,7 @@ if __name__ == '__main__':
...
@@ -77,7 +76,7 @@ if __name__ == '__main__':
input_msg
=
'
\n
'
.
join
([
'
1 - Create and run light experiment
'
,
input_msg
=
'
\n
'
.
join
([
'
1 - Create and run light experiment
'
,
'
2 - Display results of light experiment
'
,
'
2 - Display results of light experiment
'
,
'
3 - Full experiment: create full experiment
'
,
'
3 - Full experiment: create full experiment
'
,
'
4 - Generate
OAR
script
'
,
'
4 - Generate
Slurm
script
'
,
'
5 - Full experiment: collect results
'
,
'
5 - Full experiment: collect results
'
,
'
6 - Full experiment: download results
'
,
'
6 - Full experiment: download results
'
,
'
7 - Full experiment: display results
'
,
'
7 - Full experiment: display results
'
,
...
@@ -104,12 +103,12 @@ if __name__ == '__main__':
...
@@ -104,12 +103,12 @@ if __name__ == '__main__':
elif
answer
==
4
:
elif
answer
==
4
:
experiment
.
display_status
()
experiment
.
display_status
()
batch_size
=
int
(
input
(
'
Batch size (#tasks per job)?
'
))
batch_size
=
int
(
input
(
'
Batch size (#tasks per job)?
'
))
generate_
oar
_script
(
script_file_path
=
__file__
,
generate_
slurm
_script
(
script_file_path
=
__file__
,
xp_var_name
=
'
experiment
'
,
xp_var_name
=
'
experiment
'
,
batch_size
=
batch_size
,
n_simultaneous_jobs
=
n_simultaneous_jobs
,
oar
_walltime
=
'
0
1
:00:00
'
,
slurm
_walltime
=
'
0
2
:00:00
'
,
activate_env_command
=
'
source activate py36
'
,
activate_env_command
=
'
source activate py36
'
,
use_
gpu
=
False
)
use_
cpu_gpu
=
'
cpu
'
)
elif
answer
==
5
:
elif
answer
==
5
:
experiment
.
collect_results
()
experiment
.
collect_results
()
experiment
.
display_status
()
experiment
.
display_status
()
...
...
This diff is collapsed.
Click to expand it.
python/tffpy/scripts/script_exp_variance.py
+
1
−
1
View file @
98e2ed1d
...
@@ -104,7 +104,7 @@ if __name__ == '__main__':
...
@@ -104,7 +104,7 @@ if __name__ == '__main__':
n_simultaneous_jobs
=
n_simultaneous_jobs
,
n_simultaneous_jobs
=
n_simultaneous_jobs
,
slurm_walltime
=
'
02:00:00
'
,
slurm_walltime
=
'
02:00:00
'
,
activate_env_command
=
'
source activate py36
'
,
activate_env_command
=
'
source activate py36
'
,
use_
gpu
=
False
)
use_
cpu_gpu
=
'
cpu
'
)
elif
answer
==
5
:
elif
answer
==
5
:
experiment
.
collect_results
()
experiment
.
collect_results
()
experiment
.
display_status
()
experiment
.
display_status
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment