Revision 50856
Added by Claudio Atzori about 6 years ago
modules/dnet-pace-core/trunk/src/main/java/eu/dnetlib/pace/distance/eval/ScoreResult.java | ||
---|---|---|
1 | 1 |
package eu.dnetlib.pace.distance.eval; |
2 | 2 |
|
3 |
import java.util.Map; |
|
4 |
|
|
5 | 3 |
import com.google.gson.Gson; |
6 | 4 |
|
7 | 5 |
/** |
... | ... | |
18 | 16 |
public double getScore() { |
19 | 17 |
|
20 | 18 |
if (getStrictConditions().result() > 0) return 1.0; |
21 |
if (getStrictConditions().result() < 0) return 0.0; |
|
19 |
// if (getStrictConditions().result() < 0) return 0.0;
|
|
22 | 20 |
if (getConditions().result() < 0) return 0.0; |
23 | 21 |
|
24 | 22 |
return getDistances().distance(); |
Also available in: Unified diff
do not force score to zero when the strict conditions evaluate negatively