Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Alignment API
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
moex
Alignment API
Commits
39c76f8b
Commit
39c76f8b
authored
12 years ago
by
Jérôme Euzenat
Browse files
Options
Downloads
Patches
Plain Diff
- set the average on the actually retrieved tests
- yield more succint error message when a test is not retrieved
parent
c2283eb6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/fr/inrialpes/exmo/align/cli/GroupOutput.java
+8
-3
8 additions, 3 deletions
src/fr/inrialpes/exmo/align/cli/GroupOutput.java
with
8 additions
and
3 deletions
src/fr/inrialpes/exmo/align/cli/GroupOutput.java
+
8
−
3
View file @
39c76f8b
...
...
@@ -247,13 +247,19 @@ public class GroupOutput {
public
double
iterateTests
(
String
algo
,
int
[]
tests
){
File
dir
=
(
new
File
(
System
.
getProperty
(
"user.dir"
)));
double
result
=
0.0
;
int
nbtests
=
0
;
for
(
int
i
=
0
;
i
<
tests
.
length
;
i
++
){
//size() or length
if
(
debug
>
1
)
System
.
err
.
println
(
" tests: "
+
tests
[
i
]);
String
prefix
=
dir
.
toURI
().
toString
()+
"/"
+
tests
[
i
]+
"/"
;
try
{
PRecEvaluator
evaluator
=
(
PRecEvaluator
)
eval
(
prefix
+
"refalign.rdf"
,
prefix
+
algo
+
".rdf"
);
result
=
result
+
evaluator
.
getFmeasure
();
}
catch
(
AlignmentException
aex
)
{
aex
.
printStackTrace
();
}
nbtests
++;
// Only the tests that succeed
}
catch
(
AlignmentException
aex
)
{
// simple error message
if
(
aex
.
getCause
()
!=
null
)
System
.
err
.
println
(
aex
.
getCause
().
getMessage
()
);
else
System
.
err
.
println
(
aex
);
}
}
// Unload the ontologies.
try
{
...
...
@@ -261,8 +267,7 @@ public class GroupOutput {
}
catch
(
OntowrapException
owex
)
{
// only report
owex
.
printStackTrace
();
}
return
result
/(
double
)
tests
.
length
;
return
result
/(
double
)
nbtests
;
}
public
Evaluator
eval
(
String
alignName1
,
String
alignName2
)
throws
AlignmentException
{
...
...
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