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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
skmad-suite
tff2020
Commits
d3690e9b
Commit
d3690e9b
authored
4 years ago
by
valentin.emiya
Browse files
Options
Downloads
Patches
Plain Diff
more measure
parent
f86b04c9
No related branches found
No related tags found
No related merge requests found
Pipeline
#6061
passed
4 years ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/tffpy/experiments/exp_solve_tff.py
+6
-3
6 additions, 3 deletions
python/tffpy/experiments/exp_solve_tff.py
with
6 additions
and
3 deletions
python/tffpy/experiments/exp_solve_tff.py
+
6
−
3
View file @
d3690e9b
...
@@ -898,8 +898,9 @@ def perf_measures(task_params, source_data, problem_data,
...
@@ -898,8 +898,9 @@ def perf_measures(task_params, source_data, problem_data,
-------
-------
dict
dict
All data useful for result analysis including SDR and Itakura-Saito
All data useful for result analysis including SDR and Itakura-Saito
performance, running times, hyperparameter values, mask size and
performance, running times, hyperparameter values, mask size,
number of sub-regions.
number of sub-regions, estimated rank (summed over sub-regions),
lowest singular value.
"""
"""
x_tff
=
solved_data
[
'
x_tff
'
]
x_tff
=
solved_data
[
'
x_tff
'
]
x_zero
=
solved_data
[
'
x_zero
'
]
x_zero
=
solved_data
[
'
x_zero
'
]
...
@@ -955,7 +956,9 @@ def perf_measures(task_params, source_data, problem_data,
...
@@ -955,7 +956,9 @@ def perf_measures(task_params, source_data, problem_data,
features
=
dict
(
mask_size
=
np
.
sum
(
gmtff
.
mask
>
0
),
features
=
dict
(
mask_size
=
np
.
sum
(
gmtff
.
mask
>
0
),
mask_ratio
=
np
.
mean
(
gmtff
.
mask
>
0
),
mask_ratio
=
np
.
mean
(
gmtff
.
mask
>
0
),
n_subregions
=
gmtff
.
n_areas
,
n_subregions
=
gmtff
.
n_areas
,
rank_sum
=
np
.
sum
([
s
.
size
for
s
in
gmtff
.
s_vec_list
]))
rank_sum
=
np
.
sum
([
s
.
size
for
s
in
gmtff
.
s_vec_list
]),
lowest_sv
=
np
.
min
([
np
.
min
(
s
)
for
s
in
gmtff
.
s_vec_list
])
)
return
dict
(
**
running_times
,
**
sdr_res
,
**
is_res
,
**
features
)
return
dict
(
**
running_times
,
**
sdr_res
,
**
is_res
,
**
features
)
...
...
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