Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cami
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chow Castro, Marcos
cami
Compare revisions
a7feae0a993401cc4fcc217ab7967ddeffac5771 to c86cfaf6e44072da2a12a81e4850bd89de3fe714
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
bay2046/cami
Select target project
No results found
c86cfaf6e44072da2a12a81e4850bd89de3fe714
Select Git revision
Branches
cami_restructured
cami_seed_variation
camis
main
seed_variation_ruegen
5 results
Swap
Target
bay2046/cami
Select target project
bay2046/cami
1 result
a7feae0a993401cc4fcc217ab7967ddeffac5771
Select Git revision
Branches
cami_restructured
cami_seed_variation
camis
main
seed_variation_ruegen
5 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (13)
Merge branch 'main' of
https://gitlab.rrz.uni-hamburg.de/bay2046/cami
· 277c98ff
bay9355
authored
2 years ago
277c98ff
Merge branch 'main' of
https://gitlab.rrz.uni-hamburg.de/bay2046/cami
· 86783f86
bay9355
authored
2 years ago
86783f86
Merge branch 'main' of
https://gitlab.rrz.uni-hamburg.de/bay2046/cami
· 95727af9
bay9355
authored
2 years ago
95727af9
Merge branch 'main' of
https://gitlab.rrz.uni-hamburg.de/bay2046/cami
· 8db7c0aa
bay9355
authored
2 years ago
8db7c0aa
Merge branch 'main' of
https://gitlab.rrz.uni-hamburg.de/bay2046/cami
· 8e1bf655
bay9355
authored
2 years ago
8e1bf655
Merge branch 'main' of
https://gitlab.rrz.uni-hamburg.de/bay2046/cami
· 36aa2efc
bay9355
authored
2 years ago
36aa2efc
Merge branch 'main' of
https://gitlab.rrz.uni-hamburg.de/bay2046/cami
· 4da18dd5
bay9355
authored
2 years ago
4da18dd5
Merge branch 'main' of
https://gitlab.rrz.uni-hamburg.de/bay2046/cami
· f156473c
bay9355
authored
2 years ago
f156473c
Merge branch 'main' of
https://gitlab.rrz.uni-hamburg.de/bay2046/cami
· 5c609979
bay9355
authored
2 years ago
5c609979
Merge branch 'main' of
https://gitlab.rrz.uni-hamburg.de/bay2046/cami
· c3c3fc32
bay9355
authored
2 years ago
c3c3fc32
Merge branch 'main' of
https://gitlab.rrz.uni-hamburg.de/bay2046/cami
· 63514ba5
bay9355
authored
2 years ago
63514ba5
Merge branch 'main' of
https://gitlab.rrz.uni-hamburg.de/bay2046/cami
· 2518dde2
mlmial
authored
1 year ago
merge fehmarn with main
2518dde2
made seed variation runable
· c86cfaf6
mlmial
authored
1 year ago
c86cfaf6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
cami_src/cami_suite.py
+18
-5
18 additions, 5 deletions
cami_src/cami_suite.py
cami_src/evaluation_scripts/seed_variation_script.py
+9
-7
9 additions, 7 deletions
cami_src/evaluation_scripts/seed_variation_script.py
with
27 additions
and
12 deletions
cami_src/cami_suite.py
View file @
c86cfaf6
...
...
@@ -357,13 +357,26 @@ class cami():
for
tool
in
result_sets
:
result_sets
[
tool
]
-=
set
(
self
.
seed_lst
)
params_tr
=
{
'
hub_penalty
'
:
[
0.25
],
params_0
=
{
'
function
'
:
{
'
union
'
:
cami_v1
.
make_union
,
'
intersection
'
:
cami_v1
.
make_intersection
,
'
first_neighbours
'
:
cami_v1
.
make_first_neighbor_result_set
}
}
params_tr1
=
{
'
hub_penalty
'
:
[
0.5
],
'
damping_factor
'
:
[
0.75
],
'
confidence_level
'
:
[
0.8
],
'
ranking
'
:
[
'
trustrank
'
],
'
function
'
:
{
'
cami_v
3
'
:
cami_v
3
.
run_cami
}}
'
function
'
:
{
'
cami_v
2
'
:
cami_v
2
.
run_cami
}}
cami_setting_list
=
generate_param_combinations
(
params_tr
)
params_tr2
=
{
'
hub_penalty
'
:
[
0.5
],
'
damping_factor
'
:
[
0.85
],
'
confidence_level
'
:
[
0.65
],
'
ranking
'
:
[
'
trustrank
'
],
'
function
'
:
{
'
cami_v3
'
:
cami_v3
.
run_cami
}
}
cami_setting_list
=
generate_param_combinations
(
params_0
)
+
\
generate_param_combinations
(
params_tr1
)
+
\
generate_param_combinations
(
params_tr2
)
camis
=
{}
for
setting
in
cami_setting_list
:
...
...
This diff is collapsed.
Click to expand it.
cami_src/evaluation_scripts/seed_variation_script.py
View file @
c86cfaf6
...
...
@@ -52,7 +52,9 @@ def make_seedvariation(cami, n_iterations, removal_frac=0.2, vis=False, plot=Tru
for
tool
in
prediction_tools
:
res_table
.
write
(
f
'
\t
{
tool
}
_msr_ks_pvalue
'
)
with
open
(
os
.
path
.
join
(
cami
.
tmp_dir
,
f
'
{
used_tools
[
0
]
}
_
{
cami
.
uid
}
_relevance_scores.tsv)
'
),
'
r
'
)
as
f
:
# if relevance scores file exsits:
if
os
.
path
.
exists
(
os
.
path
.
join
(
cami
.
tmp_dir
,
f
'
{
used_tools
[
0
]
}
_
{
identifier
}
_relevance_scores.tsv)
'
)):
with
open
(
os
.
path
.
join
(
cami
.
tmp_dir
,
f
'
{
used_tools
[
0
]
}
_
{
identifier
}
_relevance_scores.tsv)
'
),
'
r
'
)
as
f
:
for
line
in
f
:
val_name
=
line
.
split
(
'
\t
'
)[
0
]
redisc_table
.
write
(
f
'
\t
{
val_name
}
'
)
...
...
@@ -141,8 +143,8 @@ def make_seedvariation(cami, n_iterations, removal_frac=0.2, vis=False, plot=Tru
p_val
=
kolmogorov_smirnoff
.
calculate_ks_p_value
(
list
(
module_size_dict
[
tool
]),
list
(
module_size_dict
[
pred_tool
]))
res_table
.
write
(
f
'
\t
{
p_val
}
'
)
with
open
(
os
.
path
.
join
(
cami
.
tmp_dir
,
f
'
{
tool
}
_
{
cami
.
uid
}
_relevance_scores.tsv
)
'
),
'
r
'
)
as
f
:
if
os
.
path
.
exists
(
os
.
path
.
join
(
cami
.
tmp_dir
,
f
'
{
used_tools
[
0
]
}
_
{
identifier
}
_relevance_scores.tsv)
'
)):
with
open
(
os
.
path
.
join
(
cami
.
tmp_dir
,
f
'
{
tool
}
_
{
identifier
}
_relevance_scores.tsv
'
),
'
r
'
)
as
f
:
for
line
in
f
:
rel_score
=
line
.
split
(
'
\t
'
)[
1
].
strip
()
res_table
.
write
(
f
'
\t
{
rel_score
}
'
)
...
...
This diff is collapsed.
Click to expand it.