Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PARADISE
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SIG
Theses
Pierre Lotte
PARADISE
Commits
80ffd548
Commit
80ffd548
authored
10 months ago
by
Pierre LOTTE
Browse files
Options
Downloads
Patches
Plain Diff
Add default parameters
parent
9ad4c63e
Branches
Branches containing commit
Tags
1.3.0
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
algorithm_params.json
+35
-2
35 additions, 2 deletions
algorithm_params.json
scripts/synth_optim.sh
+2
-3
2 additions, 3 deletions
scripts/synth_optim.sh
scripts/synthetiques_full_run.sh
+2
-2
2 additions, 2 deletions
scripts/synthetiques_full_run.sh
trainers/base.py
+3
-0
3 additions, 0 deletions
trainers/base.py
with
42 additions
and
7 deletions
algorithm_params.json
+
35
−
2
View file @
80ffd548
...
@@ -6,6 +6,10 @@
...
@@ -6,6 +6,10 @@
"window_size"
:
[
5
,
100
]
"window_size"
:
[
5
,
100
]
},
},
"const"
:
{
"const"
:
{
},
"default"
:
{
"n_clusters"
:
50
,
"window_size"
:
10
}
}
},
},
"iforest"
:
{
"iforest"
:
{
...
@@ -15,7 +19,11 @@
...
@@ -15,7 +19,11 @@
},
},
"const"
:
{
"const"
:
{
"max_features"
:
1.0
"max_features"
:
1.0
},
"default"
:
{
"n_trees"
:
500
}
}
},
},
"deepant"
:
{
"deepant"
:
{
"training"
:
true
,
"training"
:
true
,
...
@@ -26,7 +34,12 @@
...
@@ -26,7 +34,12 @@
"const"
:
{
"const"
:
{
"epochs"
:
500
,
"epochs"
:
500
,
"learning_rate"
:
0.001
"learning_rate"
:
0.001
},
"default"
:
{
"window_size"
:
50
,
"prediction_window_size"
:
50
}
}
},
},
"lstm_ad"
:
{
"lstm_ad"
:
{
"training"
:
true
,
"training"
:
true
,
...
@@ -38,7 +51,13 @@
...
@@ -38,7 +51,13 @@
"const"
:
{
"const"
:
{
"epochs"
:
500
,
"epochs"
:
500
,
"learning_rate"
:
0.001
"learning_rate"
:
0.001
},
"default"
:
{
"lstm_layers"
:
1
,
"window_size"
:
200
,
"prediction_window_size"
:
50
}
}
},
},
"health_esn"
:
{
"health_esn"
:
{
"training"
:
true
,
"training"
:
true
,
...
@@ -46,7 +65,11 @@
...
@@ -46,7 +65,11 @@
"prediction_window_size"
:
[
10
,
100
]
"prediction_window_size"
:
[
10
,
100
]
},
},
"const"
:
{
"const"
:
{
},
"default"
:
{
"prediction_window_size"
:
50
}
}
},
},
"random_black_forest"
:
{
"random_black_forest"
:
{
"training"
:
true
,
"training"
:
true
,
...
@@ -59,7 +82,12 @@
...
@@ -59,7 +82,12 @@
"n_neighbors"
:
[
10
,
100
],
"n_neighbors"
:
[
10
,
100
],
"n_trees"
:
[
50
,
1000
]
"n_trees"
:
[
50
,
1000
]
},
},
"const"
:
{}
"const"
:
{},
"default"
:
{
"n_trees"
:
500
,
"n_neighbors"
:
50
}
},
},
"lof"
:
{
"lof"
:
{
"training"
:
false
,
"training"
:
false
,
...
@@ -67,7 +95,12 @@
...
@@ -67,7 +95,12 @@
"n_neighbors"
:
[
10
,
100
],
"n_neighbors"
:
[
10
,
100
],
"leaf_size"
:
[
5
,
50
]
"leaf_size"
:
[
5
,
50
]
},
},
"const"
:
{}
"const"
:
{},
"default"
:
{
"n_neighbors"
:
50
,
"leaf_size"
:
20
}
}
}
}
}
This diff is collapsed.
Click to expand it.
scripts/synth_optim.sh
+
2
−
3
View file @
80ffd548
#!/bin/sh
#!/bin/sh
# Options SBATCH:
# Options SBATCH:
#SBATCH --job-name=Synthetique
#SBATCH --job-name=Synthetique
_avec_optim
#SBATCH --cpus-per-task=8
#SBATCH --cpus-per-task=8
#SBATCH --array=1-20%9
#SBATCH --array=1-20%6
#SBATCH --nodelist=r9nc-24-9,r9nc-24-10,r9nc-24-11
#SBATCH --mail-type=END
#SBATCH --mail-type=END
#SBATCH --mail-user=pierre.lotte@irit.fr
#SBATCH --mail-user=pierre.lotte@irit.fr
...
...
This diff is collapsed.
Click to expand it.
scripts/synthetiques_full_run.sh
+
2
−
2
View file @
80ffd548
#!/bin/sh
#!/bin/sh
# Options SBATCH:
# Options SBATCH:
#SBATCH --job-name=Synthetique
#SBATCH --job-name=Synthetique
_param_default
#SBATCH --cpus-per-task=8
#SBATCH --cpus-per-task=8
#SBATCH --array=1-20%6
#SBATCH --array=1-20%6
...
@@ -12,4 +12,4 @@
...
@@ -12,4 +12,4 @@
#SBATCH --partition=24CPUNodes
#SBATCH --partition=24CPUNodes
# Traitement
# Traitement
srun singularity
exec
/apps/containerCollections/CUDA12/pytorch2-NGC-24-02.sif /projects/sig/plotte/tsg_env/bin/python ./main.py
-c
config/generated_config_
$SLURM_ARRAY_TASK_ID
.json
-a
kmeans health_esn deepant lstm_ad iforest lof if_lof
-o
synth_generated
-s
all
srun singularity
exec
/apps/containerCollections/CUDA12/pytorch2-NGC-24-02.sif /projects/sig/plotte/tsg_env/bin/python ./main.py
-c
config/generated_config_
$SLURM_ARRAY_TASK_ID
.json
-a
kmeans health_esn deepant lstm_ad iforest lof if_lof
-o
synth_generated
_default
-s
all
This diff is collapsed.
Click to expand it.
trainers/base.py
+
3
−
0
View file @
80ffd548
...
@@ -26,6 +26,7 @@ class BaseTrainer():
...
@@ -26,6 +26,7 @@ class BaseTrainer():
self
.
data_path
=
data_path
self
.
data_path
=
data_path
self
.
params
=
kwargs
[
"
const
"
]
self
.
params
=
kwargs
[
"
const
"
]
self
.
optim_params
=
kwargs
[
"
optimize
"
]
self
.
optim_params
=
kwargs
[
"
optimize
"
]
self
.
default_params
=
kwargs
[
"
default
"
]
self
.
log_path
=
f
"
{
'
/
'
.
join
(
data_path
.
split
(
'
/
'
)[
:
-
1
])
}
/
{
self
.
__class__
.
__name__
}
_logs
"
self
.
log_path
=
f
"
{
'
/
'
.
join
(
data_path
.
split
(
'
/
'
)[
:
-
1
])
}
/
{
self
.
__class__
.
__name__
}
_logs
"
self
.
algorithm
=
algorithm
self
.
algorithm
=
algorithm
self
.
train
=
train
self
.
train
=
train
...
@@ -50,6 +51,8 @@ class BaseTrainer():
...
@@ -50,6 +51,8 @@ class BaseTrainer():
optimize_time
=
self
.
optimize
(
"
dataset
"
,
path
)
optimize_time
=
self
.
optimize
(
"
dataset
"
,
path
)
with
open
(
f
"
{
path
}
/time.csv
"
,
"
a
"
,
encoding
=
"
utf-8
"
)
as
f
:
with
open
(
f
"
{
path
}
/time.csv
"
,
"
a
"
,
encoding
=
"
utf-8
"
)
as
f
:
f
.
write
(
f
"
{
self
.
algorithm
}
,dataset,optimize,
{
optimize_time
}
\n
"
)
f
.
write
(
f
"
{
self
.
algorithm
}
,dataset,optimize,
{
optimize_time
}
\n
"
)
else
:
self
.
params
.
update
(
self
.
default_params
)
files
=
__exec
(
f
"
find -L
{
self
.
data_path
}
-regex
'
^.*dataset[-_0-9]*\(_auto_split\)*.csv
'"
)
files
=
__exec
(
f
"
find -L
{
self
.
data_path
}
-regex
'
^.*dataset[-_0-9]*\(_auto_split\)*.csv
'"
)
...
...
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