Skip to content

Commit

Permalink
added heatmap to TripDashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
frievoe97 committed Jun 17, 2024
1 parent 8ae66bf commit d374a81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ private void createChoiceTab(Layout layout, String[] args) {
viz.description = "Share of (mis)classified modes.";
viz.xAxisTitle = "Predicted";
viz.yAxisTitle = "True";
viz.y = "True/Pred";
viz.flipAxes = "True";
viz.dataset = data.compute(TripAnalysis.class, "mode_confusion_matrix.csv", args);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ else if (r < 0.3)
List<TripStructureUtils.Trip> trips = TripStructureUtils.getTrips(person.getSelectedPlan());
String ref = trips.stream().map(genMode).collect(Collectors.joining("-"));

person.getAttributes().putAttribute(TripAnalysis.ATTR_REF_ID, person.getId().toString());
person.getAttributes().putAttribute(TripAnalysis.ATTR_REF_MODES, ref);
}
}
Expand Down

0 comments on commit d374a81

Please sign in to comment.