adding a caphelper since not enough data gets through
This commit is contained in:
parent
2f7ab3b9cf
commit
c0d529f492
@ -220,7 +220,7 @@ public class Datahandler {
|
||||
hlStatsMessages.put(str, hlStatsMessages.size());
|
||||
}
|
||||
}
|
||||
int capacity = 250;
|
||||
int capacity = 1250;
|
||||
hlStatsMessages.keySet().forEach(str -> {
|
||||
if (!str.startsWith("!") && MessageResponseHandler.getStr().values().size() < capacity) {
|
||||
String orElse = strCacheLocal.values().parallelStream().filter(e -> e.equals(str)).findAny().orElse(null);
|
||||
@ -276,10 +276,15 @@ public class Datahandler {
|
||||
String newPrimary = similarityMatrixes.get(0).getPrimaryString();
|
||||
int evaluationCap = 500;
|
||||
int iterator = 0;
|
||||
Double caphelper = 0.0;
|
||||
for (SimilarityMatrix SMX : similarityMatrixes) {
|
||||
final Double scoreRelationNewMsgToRecentMsg = SMX.getDistance();
|
||||
if (scoreRelationNewMsgToRecentMsg > evaluationCap) {
|
||||
if (scoreRelationNewMsgToRecentMsg > 0.0) {
|
||||
caphelper += scoreRelationNewMsgToRecentMsg;
|
||||
}
|
||||
if (caphelper > evaluationCap) {
|
||||
strmapreturn = addSMXToMapReturn(strmapreturn, SMX);
|
||||
caphelper = 0.0;
|
||||
}
|
||||
//System.out.println("similarityMatrixes size: " + similarityMatrixes.size() + "\niterator: " + iterator);
|
||||
iterator++;
|
||||
|
Loading…
Reference in New Issue
Block a user