Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
skmad-suite
tff2020
Commits
26ac348a
Commit
26ac348a
authored
Nov 30, 2020
by
valentin.emiya
Browse files
minor exp var
parent
6668744f
Pipeline
#6030
failed with stage
in 4 minutes and 24 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
python/tffpy/experiments/exp_variance.py
View file @
26ac348a
...
...
@@ -17,6 +17,24 @@ class VarianceExperiment(SolveTffExperiment):
force_reset
=
force_reset
,
suffix
=
'Variance'
+
suffix
)
def
display_results
(
self
):
res
=
self
.
load_results
(
array_type
=
'xarray'
)
res
=
res
.
squeeze
()
print
(
'std(sdr_tff):'
,
float
(
res
.
sel
(
measure
=
'sdr_tff'
).
std
()))
print
(
'std(sdr_tffo):'
,
float
(
res
.
sel
(
measure
=
'sdr_tffo'
).
std
()))
print
(
'std(sdr_tffe):'
,
float
(
res
.
sel
(
measure
=
'sdr_tffe'
).
std
()))
print
(
'std(is_tff):'
,
float
(
res
.
sel
(
measure
=
'is_tff'
).
std
()))
print
(
'std(is_tffo):'
,
float
(
res
.
sel
(
measure
=
'is_tffo'
).
std
()))
print
(
'std(is_tffe):'
,
float
(
res
.
sel
(
measure
=
'is_tffe'
).
std
()))
def
plot_results
(
self
):
# No more need for this method
pass
def
plot_task
(
self
,
idt
,
fontsize
=
16
):
# No more need for this method
pass
@
staticmethod
def
get_experiment
(
setting
=
'full'
,
force_reset
=
False
):
assert
setting
in
(
'full'
,
'light'
)
...
...
@@ -35,7 +53,7 @@ class VarianceExperiment(SolveTffExperiment):
or_mask
=
True
,
crop
=
None
,
fig_dir
=
None
)
solver_params
=
dict
(
tol_subregions
=
None
,
solver_params
=
dict
(
tol_subregions
=
1e-5
,
tolerance_arrf
=
1e-3
,
proba_arrf
=
1
-
1e-4
,
rand_state
=
np
.
arange
(
100
))
...
...
python/tffpy/scripts/script_exp_variance.py
View file @
26ac348a
...
...
@@ -124,7 +124,7 @@ if __name__ == '__main__':
+
'*.*'
,
to_dir
]))
elif
answer
==
7
:
experiment
.
plot_results
()
experiment
.
display_status
()
experiment
.
display_results
()
else
:
print
(
'Unknown answer: '
+
str
(
answer
))
Write
Preview
Supports
Markdown
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