Skip to content

Commit

Permalink
Contrast set fix: group labels written in the log instead of numerica…
Browse files Browse the repository at this point in the history
…l identifiers.
  • Loading branch information
agudys committed Oct 5, 2024
1 parent 84c9bbd commit c2a3b1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion adaa.analytics.rules/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
id 'java'
}

version = '2.1.19'
version = '2.1.20'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,17 @@ public String toString() {
// get times from training estimator
ArrayList<Double> times = trainingEstimator.getTimes();

ContrastSurvivalExampleSet ces = (ContrastSurvivalExampleSet)getTrainingHeader();
List<String> groups = ces.getContrastAttribute().getMapping().getValues();

// build header
sb.append("time,entire-set");
for (int i = 0; i < groupEstimators.size(); ++i) {
sb.append(",group-" + (i + 1));
sb.append(",group-" + groups.get(i));
}

for (int i = 0; i < rules.size(); ++i) {
sb.append(",cs-" + (i + 1));
sb.append(",cs-" + (i+1));
}
sb.append("\n");

Expand Down

0 comments on commit c2a3b1d

Please sign in to comment.