jjakubassa / WDI-Project

0 stars 0 forks source link

Why is number of correspondences printed not the same as correspondences.size? #19

Open jjakubassa opened 8 months ago

jjakubassa commented 8 months ago

The number of correspondences printed into the log is not the same as when I print it with my own code like this:

String numberCorrespondence = String.format("%d", correspondences.size());
logger.info("Found correspondences: " + numberCorrespondence);

result:


[INFO ] 2023-11-17 10:02:10.241 [de.uni_mannheim.informatik.dws.winter.matching.algorithms.RuleBasedMatchingAlgorithm] - Identity Resolution finished after 0:00:05.316; found 20.521 correspondences.
[WARN ] 2023-11-17 10:02:10.242 [de.uni_mannheim.informatik.dws.winter.matching.rules.MatchingRule] - No corresponding record for the Debug Log found in the Goldstandard!
[WARN ] 2023-11-17 10:02:10.242 [de.uni_mannheim.informatik.dws.winter.matching.rules.MatchingRule] - Please align the order of Data Sets in Goldstandard and Matching Rule!
[INFO ] 2023-11-17 10:02:11.102 [de.uni_mannheim.informatik.dws.winter.matching.rules.MatchingRule] - Debug results written to file: data/output/debugResultsMatchingRuleWDC_SPY.csv
[INFO ] 2023-11-17 10:02:11.352 [de.uni_mannheim.informatik.dws.winter.matching.rules.MatchingRule] - Debug results written to file: data/output/debugResultsMatchingRuleWDC_SPY.csv_short
[INFO ] 2023-11-17 10:02:11.411 [de.uni_mannheim.informatik.dws.wdi.ExerciseIdentityResolution.IR_using_linear_combination] - Found correspondences: 5377
[INFO ] 2023-11-17 10:02:11.411 [de.uni_mannheim.informatik.dws.wdi.ExerciseIdentityResolution.IR_using_linear_combination] - * Evaluating result: MusicBrainz <-> Spotify
[INFO ] 2023-11-17 10:02:11.412 [de.uni_mannheim.informatik.dws.wdi.ExerciseIdentityResolution.IR_using_linear_combination] - Precision: 0,8333
[INFO ] 2023-11-17 10:02:11.412 [de.uni_mannheim.informatik.dws.wdi.ExerciseIdentityResolution.IR_using_linear_combination] - Recall: 1,0000
[INFO ] 2023-11-17 10:02:11.412 [de.uni_mannheim.informatik.dws.wdi.ExerciseIdentityResolution.IR_using_linear_combination] - F1: 0,9091
[INFO ] 2023-11-17 10:02:11.412 [de.uni_mannheim.informatik.dws.wdi.ExerciseIdentityResolution.IR_using_linear_combination] - * Evaluating result: WebDataCommons <-> MusicBrainz
[INFO ] 2023-11-17 10:02:11.412 [de.uni_mannheim.informatik.dws.wdi.ExerciseIdentityResolution.IR_using_linear_combination] - Precision: 1,0000
[INFO ] 2023-11-17 10:02:11.412 [de.uni_mannheim.informatik.dws.wdi.ExerciseIdentityResolution.IR_using_linear_combination] - Recall: 1,0000
[INFO ] 2023-11-17 10:02:11.412 [de.uni_mannheim.informatik.dws.wdi.ExerciseIdentityResolution.IR_using_linear_combination] - F1: 1,0000
[INFO ] 2023-11-17 10:02:11.412 [de.uni_mannheim.informatik.dws.wdi.ExerciseIdentityResolution.IR_using_linear_combination] - * Evaluating result: WebDataCommons <-> Spotify
[INFO ] 2023-11-17 10:02:11.412 [de.uni_mannheim.informatik.dws.wdi.ExerciseIdentityResolution.IR_using_linear_combination] - Precision: 0,8889
[INFO ] 2023-11-17 10:02:11.412 [de.uni_mannheim.informatik.dws.wdi.ExerciseIdentityResolution.IR_using_linear_combination] - Recall: 0,8889
[INFO ] 2023-11-17 10:02:11.412 [de.uni_mannheim.informatik.dws.wdi.ExerciseIdentityResolution.IR_using_linear_combination] - F1: 0,8889```