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
93ed2c42
Commit
93ed2c42
authored
10 months ago
by
Pierre LOTTE
Browse files
Options
Downloads
Patches
Plain Diff
Fix timer
parent
6a56aea4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
main.py
+1
-1
1 addition, 1 deletion
main.py
split/base.py
+2
-2
2 additions, 2 deletions
split/base.py
trainers/base.py
+1
-1
1 addition, 1 deletion
trainers/base.py
with
4 additions
and
4 deletions
main.py
+
1
−
1
View file @
93ed2c42
...
@@ -149,7 +149,7 @@ if __name__ == "__main__":
...
@@ -149,7 +149,7 @@ if __name__ == "__main__":
algo_params
=
json
.
load
(
f
)
algo_params
=
json
.
load
(
f
)
with
open
(
f
"
{
INPUT_DIR
}
/
{
config_name
}
/time.csv
"
,
"
a
"
,
encoding
=
"
utf-8
"
)
as
f
:
with
open
(
f
"
{
INPUT_DIR
}
/
{
config_name
}
/time.csv
"
,
"
a
"
,
encoding
=
"
utf-8
"
)
as
f
:
f
.
write
(
"
Algorithm,dataset,duration
"
)
f
.
write
(
"
Algorithm,dataset,duration
\n
"
)
for
algo
in
args
.
algorithms
:
for
algo
in
args
.
algorithms
:
params
=
algo_params
[
algo
]
params
=
algo_params
[
algo
]
...
...
This diff is collapsed.
Click to expand it.
split/base.py
+
2
−
2
View file @
93ed2c42
...
@@ -82,7 +82,7 @@ class BaseSplitter:
...
@@ -82,7 +82,7 @@ class BaseSplitter:
Compute the vector of correlation coefficients for each of the variable of the dataset.
Compute the vector of correlation coefficients for each of the variable of the dataset.
"""
"""
with
open
(
f
"
{
self
.
data_path
}
/split_time.csv
"
,
"
a
"
,
encoding
=
"
utf-8
"
)
as
f
:
with
open
(
f
"
{
self
.
data_path
}
/split_time.csv
"
,
"
a
"
,
encoding
=
"
utf-8
"
)
as
f
:
f
.
write
(
"
Algorithm,duration
"
)
f
.
write
(
"
Algorithm,duration
\n
"
)
x
=
None
x
=
None
for
coeff
in
CORRELATION_CLASSES
:
for
coeff
in
CORRELATION_CLASSES
:
coeff_name
=
coeff
.
__name__
[:
-
11
]
coeff_name
=
coeff
.
__name__
[:
-
11
]
...
@@ -90,7 +90,7 @@ class BaseSplitter:
...
@@ -90,7 +90,7 @@ class BaseSplitter:
start_time
=
time
()
start_time
=
time
()
correlation_matrix
=
coeff
().
compute
(
data
)
correlation_matrix
=
coeff
().
compute
(
data
)
duration
=
time
()
-
start_time
duration
=
time
()
-
start_time
f
.
write
(
f
"
{
coeff_name
}
,
{
duration
}
"
)
f
.
write
(
f
"
{
coeff_name
}
,
{
duration
}
\n
"
)
correlation_matrix
.
to_csv
(
f
"
{
self
.
data_path
}
/dataset_correlation_
{
coeff_name
}
.csv
"
)
correlation_matrix
.
to_csv
(
f
"
{
self
.
data_path
}
/dataset_correlation_
{
coeff_name
}
.csv
"
)
sns
.
heatmap
(
correlation_matrix
,
annot
=
True
,
cmap
=
"
coolwarm
"
)
\
sns
.
heatmap
(
correlation_matrix
,
annot
=
True
,
cmap
=
"
coolwarm
"
)
\
...
...
This diff is collapsed.
Click to expand it.
trainers/base.py
+
1
−
1
View file @
93ed2c42
...
@@ -66,4 +66,4 @@ class BaseTrainer():
...
@@ -66,4 +66,4 @@ class BaseTrainer():
duration
=
time
()
-
start_time
duration
=
time
()
-
start_time
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
}
,
{
file_name
}
,
{
duration
}
"
)
f
.
write
(
f
"
{
self
.
algorithm
}
,
{
file_name
}
,
{
duration
}
\n
"
)
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