Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
ted-experiments
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mateusz Pawlik
ted-experiments
Commits
de2a6d33
Commit
de2a6d33
authored
Nov 08, 2018
by
Mateusz Pawlik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed obsolete algorithms from possible execution.
parent
ae5b83b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
50 deletions
+1
-50
src/ted_algs/ted_algs_experiments.cc
src/ted_algs/ted_algs_experiments.cc
+1
-50
No files found.
src/ted_algs/ted_algs_experiments.cc
View file @
de2a6d33
...
...
@@ -352,21 +352,12 @@ int main(int argc, char** argv) {
// --apted APTED apted_ted
// --tz Touzet - basic version touzet_ted
// --tzd Touzet - depth-based pruning touzet_ted_depth_pruning
// --tzs Touzet - keyroot nodes with set touzet_ted_kr_loop
// --tzl Touzet - keyroot nodes with loop touzet_ted_kr_set
// --tzse Touzet - keyroot nodes with set + e_max touzet_ted_kr_loop
// --tzle Touzet - keyroot nodes with loop + e_max touzet_ted_kr_set
// --lg LabelGuided greedy_ub_ted
bool
alg_zs_is_set
=
false
;
bool
alg_apted_is_set
=
false
;
bool
alg_tz_is_set
=
false
;
bool
alg_tzd_is_set
=
false
;
bool
alg_tzs_is_set
=
false
;
bool
alg_tzl_is_set
=
false
;
bool
alg_tzse_is_set
=
false
;
bool
alg_tzle_is_set
=
false
;
bool
alg_lg_is_set
=
false
;
bool
alg_lg_depr_is_set
=
false
;
// Output format
bool
output_in_json
=
false
;
...
...
@@ -405,24 +396,9 @@ int main(int argc, char** argv) {
}
else
if
(
a
==
"--tzd"
)
{
alg_tzd_is_set
=
true
;
args_start_it
+=
1
;
}
else
if
(
a
==
"--tzs"
)
{
alg_tzs_is_set
=
true
;
args_start_it
+=
1
;
}
else
if
(
a
==
"--tzl"
)
{
alg_tzl_is_set
=
true
;
args_start_it
+=
1
;
}
else
if
(
a
==
"--tzse"
)
{
alg_tzse_is_set
=
true
;
args_start_it
+=
1
;
}
else
if
(
a
==
"--tzle"
)
{
alg_tzle_is_set
=
true
;
args_start_it
+=
1
;
}
else
if
(
a
==
"--lg"
)
{
}
else
if
(
a
==
"--lg"
)
{
alg_lg_is_set
=
true
;
args_start_it
+=
1
;
}
else
if
(
a
==
"--lgdepr"
)
{
alg_lg_depr_is_set
=
true
;
args_start_it
+=
1
;
}
else
if
(
a
==
"--one-by-one"
)
{
// mechanism_to_execute = kOneByOne;
mp
=
MechanismParams
(
kOneByOne
);
...
...
@@ -513,36 +489,11 @@ int main(int argc, char** argv) {
execute_mechanism
<
Label
,
Touzet
,
&
Touzet
::
touzet_ted_depth_pruning
>
(
trees_collection
,
mp
,
similarity_threshold
,
lp
));
}
if
(
alg_tzs_is_set
)
{
experiment
.
algorithm_executions
.
emplace_back
(
"TouzetKrLoop"
,
execute_mechanism
<
Label
,
Touzet
,
&
Touzet
::
touzet_ted_kr_loop_no_e_max
>
(
trees_collection
,
mp
,
similarity_threshold
,
lp
));
}
if
(
alg_tzl_is_set
)
{
experiment
.
algorithm_executions
.
emplace_back
(
"TouzetKrSet"
,
execute_mechanism
<
Label
,
Touzet
,
&
Touzet
::
touzet_ted_kr_set_no_e_max
>
(
trees_collection
,
mp
,
similarity_threshold
,
lp
));
}
if
(
alg_tzse_is_set
)
{
experiment
.
algorithm_executions
.
emplace_back
(
"TouzetKrLoopEmax"
,
execute_mechanism
<
Label
,
Touzet
,
&
Touzet
::
touzet_ted_kr_loop_e_max
>
(
trees_collection
,
mp
,
similarity_threshold
,
lp
));
}
if
(
alg_tzle_is_set
)
{
experiment
.
algorithm_executions
.
emplace_back
(
"TouzetKrSetEmax"
,
execute_mechanism
<
Label
,
Touzet
,
&
Touzet
::
touzet_ted_kr_set_e_max
>
(
trees_collection
,
mp
,
similarity_threshold
,
lp
));
}
if
(
alg_lg_is_set
)
{
experiment
.
algorithm_executions
.
emplace_back
(
"LabelGuided"
,
execute_mechanism
<
Label
,
LabelGuided
,
&
LabelGuided
::
verify_bool
>
(
trees_collection
,
mp
,
similarity_threshold
,
lp
));
}
if
(
alg_lg_depr_is_set
)
{
experiment
.
algorithm_executions
.
emplace_back
(
"LabelGuidedDeprecated"
,
execute_mechanism
<
Label
,
LabelGuided
,
&
LabelGuided
::
greedy_ub_ted_deprecated
>
(
trees_collection
,
mp
,
similarity_threshold
,
lp
));
}
// OUTPUT RESULTS
if
(
output_in_json
)
{
...
...
Write
Preview
Markdown
is supported
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