File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
src/org/processmining/placebasedlpmdiscovery Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ public void run() {
67
67
result = new StandardLPMDiscoveryResult (lpms );
68
68
result .addAdditionalResults ("eventCoverageSetLevel" , this .evaluationController .getEventCoverageSetLevel ());
69
69
// result = this.lpmCombination.combine(places, parameters.getLpmCount());
70
+
70
71
result .keep (parameters .getLpmCount ());
71
72
result .setInput (input );
72
73
Original file line number Diff line number Diff line change 2
2
3
3
import org .apache .commons .lang .NotImplementedException ;
4
4
import org .processmining .placebasedlpmdiscovery .lpmdiscovery .algorithms .inputs .LPMDiscoveryInput ;
5
+ import org .processmining .placebasedlpmdiscovery .lpmevaluation .results .LPMEvaluationResult ;
5
6
import org .processmining .placebasedlpmdiscovery .lpmevaluation .results .StandardLPMEvaluationResultId ;
6
7
import org .processmining .placebasedlpmdiscovery .lpmevaluation .results .concrete .FittingWindowsEvaluationResult ;
7
8
import org .processmining .placebasedlpmdiscovery .main .LPMDiscoveryConfig ;
@@ -25,7 +26,12 @@ public class StandardLPMDiscoveryResult implements LPMDiscoveryResult {
25
26
private transient Map <String , Object > additionalResults ;
26
27
27
28
public StandardLPMDiscoveryResult (Collection <LocalProcessModel > lpms ) {
28
- this .lpms = lpms ;
29
+ this .lpms = lpms .stream ()
30
+ .sorted (Comparator .comparingDouble ((LocalProcessModel lpm ) ->
31
+ lpm .getAdditionalInfo ().getEvaluationResult (
32
+ StandardLPMEvaluationResultId .TraceSupportEvaluationResult .name (),
33
+ LPMEvaluationResult .class ).getResult ()))
34
+ .collect (Collectors .toList ());
29
35
this .additionalResults = new HashMap <>();
30
36
}
31
37
You can’t perform that action at this time.
0 commit comments